Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: hgafb: remove unneeded comparison

var->yoffset is of the type __u32, hence the comparison will always
be false.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Sudip Mukherjee and committed by
Tomi Valkeinen
070a1783 5b28f0fa

+1 -2
+1 -2
drivers/video/fbdev/hgafb.c
··· 417 417 struct fb_info *info) 418 418 { 419 419 if (var->vmode & FB_VMODE_YWRAP) { 420 - if (var->yoffset < 0 || 421 - var->yoffset >= info->var.yres_virtual || 420 + if (var->yoffset >= info->var.yres_virtual || 422 421 var->xoffset) 423 422 return -EINVAL; 424 423 } else {