]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: synopsys: hdmirx: media: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Tue, 26 Aug 2025 14:50:56 +0000 (22:50 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 14 Oct 2025 13:07:36 +0000 (15:07 +0200)
commit32768975e9b67169c62a0a9bfbd4eeec98d0b8ea
treedb4c3189854678bf6dfa0fa5a3a0222e94c873f8
parent843bce0fd189c592fe8b466116b1df847447b586
media: synopsys: hdmirx: media: 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>
Acked-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c