summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-11-11 14:12:21 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-11-12 17:00:47 +0200
commit7aa0337975506ad37fc793e184c52713a2ca411b (patch)
tree4a30b0434d35da687658693956cc73e6f71283a9
parent8b9dd1b7fc05d0a7f9c1cd7088ca04fb120b0b51 (diff)
isp: stats: Fix signed vs. unsigned comparison warning
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--isp/stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isp/stats.c b/isp/stats.c
index a96da5e..9a2d5f3 100644
--- a/isp/stats.c
+++ b/isp/stats.c
@@ -212,8 +212,8 @@ int omap3_isp_aewb_configure(struct omap3_isp_device *isp, struct v4l2_rect *rec
return -EINVAL;
/* Validate the requested rectangle. */
- if (rect->left < 0 || rect->left + rect->width > (int)format.width ||
- rect->top < 0 || rect->top + rect->height > (int)format.height)
+ if (rect->left < 0 || rect->left + rect->width > format.width ||
+ rect->top < 0 || rect->top + rect->height > format.height)
return -ERANGE;
/* Window width and height are computed by dividing the frame width and