]> git.ipfire.org Git - thirdparty/linux.git/commit
media: chips-media: wave5: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Tue, 26 Aug 2025 14:52:43 +0000 (22:52 +0800)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 4 Sep 2025 08:37:05 +0000 (10:37 +0200)
commit9df928c90c109c97bdb565f81d3674224f3d118a
tree0f640f2ff692d197d5e57462c84cbbe35af89b06
parent73d50aa92f28ee8414fbfde011974fce970b82cc
media: chips-media: wave5: 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>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c