OMAP: DSS2: OMAPFB: Remove redundant rotate range check

Unsigned rotate can never be less than zero. Found by Coverity.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
Jani Nikula 2010-06-01 17:25:10 +03:00 committed by Tomi Valkeinen
parent 9325588757
commit 86f2d7dd72
1 changed files with 1 additions and 1 deletions

View File

@ -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))