media: staging: imgu: Remove redundant checks
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 18 Feb 2019 16:33:54 +0000 (11:33 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 15:18:01 +0000 (11:18 -0400)
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>
drivers/staging/media/ipu3/ipu3-css-fw.c

index 4122d4e..45aff76 100644 (file)
@@ -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;