From: Sudip Mukherjee Date: Tue, 13 Jan 2015 16:14:59 +0000 (+0530) Subject: video: hgafb: remove unneeded comparison X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=070a178331d056934fccf00bdc001eb9647ea029;p=deliverable%2Flinux.git video: hgafb: remove unneeded comparison var->yoffset is of the type __u32, hence the comparison will always be false. Signed-off-by: Sudip Mukherjee Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/hgafb.c b/drivers/video/fbdev/hgafb.c index 5ff9fe2116a4..15d3ccff2965 100644 --- a/drivers/video/fbdev/hgafb.c +++ b/drivers/video/fbdev/hgafb.c @@ -417,8 +417,7 @@ static int hgafb_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 || + if (var->yoffset >= info->var.yres_virtual || var->xoffset) return -EINVAL; } else {