]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: atomisp: Replace ternary operator with if
authorRicardo Ribalda <ribalda@chromium.org>
Sat, 28 Sep 2024 17:24:00 +0000 (17:24 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Oct 2024 07:32:42 +0000 (09:32 +0200)
commit698b6e3163bafd61e1b7d13572e2c42974ac85ec
treede3a1e2480346e7a51c275aaeb67d91dfdf64b90
parent1ee5e1fd82950743ecb9f6c99bd240098a9c6307
media: atomisp: Replace ternary operator with if

Replace the ternary operator with an if. In this case the code is more
clear and also fixes the following cocci warnings:

drivers/staging/media/atomisp/pci/sh_css_frac.h:40:17-18: WARNING opportunity for max()
drivers/staging/media/atomisp/pci/sh_css_frac.h:50:17-18: WARNING opportunity for max()

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_frac.h