diff options
author | Jani Nikula <ext-jani.1.nikula@nokia.com> | 2010-06-01 17:25:10 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-05 16:52:08 +0300 |
commit | 86f2d7dd72e1ff4656107e42a12c999a7b9c26d4 (patch) | |
tree | 8ef317d2ae8190560848c4a06fd2e29d12c31406 /drivers | |
parent | 9325588757aa7d08bf2ca9c63b669d0d7aa2fc40 (diff) | |
download | linux-86f2d7dd72e1ff4656107e42a12c999a7b9c26d4.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |