projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e66a87
)
LF-2853 media: camera: Fix Coverity Issue: 17391 Unsigned compared against 0
author
Robby Cai
<robby.cai@nxp.com>
Fri, 7 May 2021 09:38:11 +0000
(17:38 +0800)
committer
Robby Cai
<robby.cai@nxp.com>
Mon, 10 May 2021 03:43:25 +0000
(11:43 +0800)
remove the comparison against 0 which is not necessary
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: G.n. Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/mxc/capture/ov5640.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/mxc/capture/ov5640.c
b/drivers/media/platform/mxc/capture/ov5640.c
index
dba445d
..
ef6f8ca
100644
(file)
--- a/
drivers/media/platform/mxc/capture/ov5640.c
+++ b/
drivers/media/platform/mxc/capture/ov5640.c
@@
-1648,7
+1648,7
@@
static int ioctl_enum_frameintervals(struct v4l2_int_device *s,
{
int i, j, count;
- if (fival->index
< 0 || fival->index
> ov5640_mode_MAX)
+ if (fival->index > ov5640_mode_MAX)
return -EINVAL;
if (fival->width == 0 || fival->height == 0 ||