From: Fabian Frederick Date: Wed, 11 Jun 2014 19:54:00 +0000 (+0200) Subject: drivers/video/fbdev/sis/sis_main.c: remove unnecessary test on unsigned value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f8b9db7dde4ee70160993ea3fa22293b2c5c598;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers/video/fbdev/sis/sis_main.c: remove unnecessary test on unsigned value unsigned value is never < 0 Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Signed-off-by: Fabian Frederick Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/sis/sis_main.c b/drivers/video/fbdev/sis/sis_main.c index 22ad028bf123..3f12a2dd959a 100644 --- a/drivers/video/fbdev/sis/sis_main.c +++ b/drivers/video/fbdev/sis/sis_main.c @@ -1572,10 +1572,6 @@ sisfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) /* Adapt RGB settings */ sisfb_bpp_to_var(ivideo, var); - /* Sanity check for offsets */ - if(var->xoffset < 0) var->xoffset = 0; - if(var->yoffset < 0) var->yoffset = 0; - if(var->xres > var->xres_virtual) var->xres_virtual = var->xres;