diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-25 08:02:58 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-09-26 04:52:31 -0400 |
commit | cd1979b670fafed0130e0a3d0eddd7bc6a143f79 (patch) | |
tree | 6c76e2db8709cbc0cb4bd42db1f110c19babeda7 | |
parent | 8639fac5dae12c76e41456ceb5b72fc22f6888f6 (diff) |
video: aty: Remove incorrect checks
'xoffset' and 'yoffset' are unsigned and hence cannot be less than 0.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/aty/radeon_base.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index 1e30b2b3e79f..26d80a4486fb 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c | |||
@@ -819,11 +819,6 @@ static int radeonfb_check_var (struct fb_var_screeninfo *var, struct fb_info *in | |||
819 | if (v.xres_virtual < v.xres) | 819 | if (v.xres_virtual < v.xres) |
820 | v.xres = v.xres_virtual; | 820 | v.xres = v.xres_virtual; |
821 | 821 | ||
822 | if (v.xoffset < 0) | ||
823 | v.xoffset = 0; | ||
824 | if (v.yoffset < 0) | ||
825 | v.yoffset = 0; | ||
826 | |||
827 | if (v.xoffset > v.xres_virtual - v.xres) | 822 | if (v.xoffset > v.xres_virtual - v.xres) |
828 | v.xoffset = v.xres_virtual - v.xres - 1; | 823 | v.xoffset = v.xres_virtual - v.xres - 1; |
829 | 824 | ||