media: staging: imgu: Remove redundant checks
Remove redundant checks for less than zero on unsigned variables. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Tested-by: Rajmohan Mani <rajmohan.mani@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
c9d52c114a
commit
0ace8734f4
@ -200,13 +200,11 @@ int imgu_css_fw_init(struct imgu_css *css)
|
||||
goto bad_fw;
|
||||
|
||||
for (j = 0; j < bi->info.isp.num_output_formats; j++)
|
||||
if (bi->info.isp.output_formats[j] < 0 ||
|
||||
bi->info.isp.output_formats[j] >=
|
||||
if (bi->info.isp.output_formats[j] >=
|
||||
IMGU_ABI_FRAME_FORMAT_NUM)
|
||||
goto bad_fw;
|
||||
for (j = 0; j < bi->info.isp.num_vf_formats; j++)
|
||||
if (bi->info.isp.vf_formats[j] < 0 ||
|
||||
bi->info.isp.vf_formats[j] >=
|
||||
if (bi->info.isp.vf_formats[j] >=
|
||||
IMGU_ABI_FRAME_FORMAT_NUM)
|
||||
goto bad_fw;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user