summaryrefslogtreecommitdiffstats
path: root/drivers/video/aty
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-25 14:02:58 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-26 10:52:31 +0200
commitcd1979b670fafed0130e0a3d0eddd7bc6a143f79 (patch)
tree6c76e2db8709cbc0cb4bd42db1f110c19babeda7 /drivers/video/aty
parentvideo: cirrusfb: Remove incorrect checks (diff)
downloadlinux-cd1979b670fafed0130e0a3d0eddd7bc6a143f79.tar.xz
linux-cd1979b670fafed0130e0a3d0eddd7bc6a143f79.zip
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>
Diffstat (limited to 'drivers/video/aty')
-rw-r--r--drivers/video/aty/radeon_base.c5
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
if (v.xres_virtual < v.xres)
v.xres = v.xres_virtual;
- if (v.xoffset < 0)
- v.xoffset = 0;
- if (v.yoffset < 0)
- v.yoffset = 0;
-
if (v.xoffset > v.xres_virtual - v.xres)
v.xoffset = v.xres_virtual - v.xres - 1;