diff options
author | Jani Nikula <ext-jani.1.nikula@nokia.com> | 2010-06-01 10:25:10 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-05 09:52:08 -0400 |
commit | 86f2d7dd72e1ff4656107e42a12c999a7b9c26d4 (patch) | |
tree | 8ef317d2ae8190560848c4a06fd2e29d12c31406 /drivers/video/omap2 | |
parent | 9325588757aa7d08bf2ca9c63b669d0d7aa2fc40 (diff) |
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/video/omap2')
-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) | |||
683 | } | 683 | } |
684 | } | 684 | } |
685 | 685 | ||
686 | if (var->rotate < 0 || var->rotate > 3) | 686 | if (var->rotate > 3) |
687 | return -EINVAL; | 687 | return -EINVAL; |
688 | 688 | ||
689 | if (check_fb_res_bounds(var)) | 689 | if (check_fb_res_bounds(var)) |