From 86f2d7dd72e1ff4656107e42a12c999a7b9c26d4 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Tue, 1 Jun 2010 17:25:10 +0300 Subject: OMAP: DSS2: OMAPFB: Remove redundant rotate range check Unsigned rotate can never be less than zero. Found by Coverity. Signed-off-by: Jani Nikula Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/omapfb/omapfb-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video') diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index db307e3c1dd5..8303776647fc 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -683,7 +683,7 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var) } } - if (var->rotate < 0 || var->rotate > 3) + if (var->rotate > 3) return -EINVAL; if (check_fb_res_bounds(var)) -- cgit v1.2.1