media: platform: samsung: s5p-jpeg: replace ternary operator with max()
authorGuo Zhengkui <guozhengkui@vivo.com>
Wed, 18 May 2022 12:08:36 +0000 (13:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:31 +0000 (10:30 +0100)
commit5fe1d61a98e29bb2128d77355d2122826b881cb8
tree24e308581265370127bcbdaa31aff0888425105b
parentdb9edaaff137699d4bc5dc3328afa748fb8f5c93
media: platform: samsung: s5p-jpeg: replace ternary operator with max()

Fix the following coccicheck warning:

drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c:1712:24-25:
WARNING opportunity for max()

max() macro is defined in include/linux/minmax.h. It avoids multiple
evaluations of the arguments when non-constant and performs strict
type-checking.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/samsung/s5p-jpeg/jpeg-core.c