]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: core: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 28 Aug 2025 12:27:37 +0000 (20:27 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 28 Aug 2025 14:02:51 +0000 (16:02 +0200)
commit899fb38dd76dd3ede425bbaf8a96d390180a5d1c
tree6deed8a64e43db827a5766a58e2feca2eeb2d5cb
parente2ab5f600bb01d3625d667d97b3eb7538e388336
regulator: core: Remove redundant ternary operators

For ternary operators in the form of "a ? true : false", if 'a' itself
returns a boolean result, the ternary operator can be omitted. Remove
redundant ternary operators to clean up the code.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Message-ID: <20250828122737.43488-1-liaoyuanhong@vivo.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c