]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
video: aty: Remove incorrect checks
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 25 Sep 2013 12:02:58 +0000 (17:32 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 08:52:31 +0000 (11:52 +0300)
'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>
drivers/video/aty/radeon_base.c

index 1e30b2b3e79f3f0cf939272f9d43ce00d692b1d0..26d80a4486fb3024137ce2d38588f0d9b63d1f09 100644 (file)
@@ -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;