From 7aa0337975506ad37fc793e184c52713a2ca411b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 11 Nov 2015 14:12:21 +0200 Subject: isp: stats: Fix signed vs. unsigned comparison warning Signed-off-by: Laurent Pinchart --- isp/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'isp/stats.c') 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 -- cgit v1.2.3