diff options
Diffstat (limited to 'isp')
-rw-r--r-- | isp/stats.c | 4 |
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 |