]> git.ipfire.org Git - thirdparty/linux.git/commit
media: siano: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 4 Sep 2025 11:30:34 +0000 (19:30 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 11 Nov 2025 09:17:33 +0000 (10:17 +0100)
commit97e8e73777ab21f2ea9a917a76d2186748e9f9cb
tree2353466bce61de251c0bbd4f50a806bced92df61
parent1240abf4b71f632f0117b056e22488e4d9808938
media: siano: Remove redundant ternary operators

For ternary operators in the form of "a ? false : true", 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>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/common/siano/smsir.c