diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-01-13 17:14:59 +0100 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-01-26 13:43:06 +0100 |
commit | 070a178331d056934fccf00bdc001eb9647ea029 (patch) | |
tree | 80168997e65bfe355ef42a2ed3756f7eef673ee6 | |
parent | fbcon: Remove unused vblank cursor code (diff) | |
download | linux-070a178331d056934fccf00bdc001eb9647ea029.tar.xz linux-070a178331d056934fccf00bdc001eb9647ea029.zip |
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>
-rw-r--r-- | drivers/video/fbdev/hgafb.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |