summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-01-13 21:44:59 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-01-26 14:43:06 +0200
commit070a178331d056934fccf00bdc001eb9647ea029 (patch)
tree80168997e65bfe355ef42a2ed3756f7eef673ee6 /drivers/video
parent5b28f0fabbd745b2cc42a89f5b1d87757a68eed7 (diff)
downloadop-kernel-dev-070a178331d056934fccf00bdc001eb9647ea029.zip
op-kernel-dev-070a178331d056934fccf00bdc001eb9647ea029.tar.gz
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/hgafb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/hgafb.c b/drivers/video/fbdev/hgafb.c
index 5ff9fe2..15d3ccf 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 {
OpenPOWER on IntegriCloud