From: Sachin Kamat Date: Wed, 25 Sep 2013 12:02:56 +0000 (+0530) Subject: video: vfb: Remove incorrect check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ca3bc11aac3c53424e04f542ffc3bc87ebd339b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git video: vfb: Remove incorrect check 'yoffset' is unsigned and hence cannot be less than 0. Signed-off-by: Sachin Kamat Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/vfb.c b/drivers/video/vfb.c index ee5985efa15c..ea2b523f804f 100644 --- a/drivers/video/vfb.c +++ b/drivers/video/vfb.c @@ -390,9 +390,8 @@ static int vfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) { if (var->vmode & FB_VMODE_YWRAP) { - if (var->yoffset < 0 - || var->yoffset >= info->var.yres_virtual - || var->xoffset) + if (var->yoffset >= info->var.yres_virtual || + var->xoffset) return -EINVAL; } else { if (var->xoffset + info->var.xres > info->var.xres_virtual ||