diff options
author | Sachin Kamat | 2013-09-25 17:32:58 +0530 |
---|---|---|
committer | Tomi Valkeinen | 2013-09-26 11:52:31 +0300 |
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 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; |