From ccf3f37342689256aed067f434076acafd550872 Mon Sep 17 00:00:00 2001 From: Robby Cai Date: Fri, 7 May 2021 18:00:46 +0800 Subject: [PATCH] LF-2855 media: camera: Fix Coverity Issue: 17397 Unsigned compared against 0 remove the comparison against 0 which is not necessary Signed-off-by: Robby Cai Reviewed-by: G.n. Zhou --- drivers/media/platform/mxc/capture/ov5640_mipi_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c b/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c index b5c3d16bfd84..eac8b12360dc 100644 --- a/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c +++ b/drivers/media/platform/mxc/capture/ov5640_mipi_v2.c @@ -1561,7 +1561,7 @@ static int ov5640_enum_frameintervals(struct v4l2_subdev *sd, struct device *dev = &client->dev; int i, j, count = 0; - if (fie->index < 0 || fie->index > ov5640_mode_MAX) + if (fie->index > ov5640_mode_MAX) return -EINVAL; if (fie->width == 0 || fie->height == 0 || -- 2.17.1