Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ca3bc11 authored by Sachin Kamat's avatar Sachin Kamat Committed by Tomi Valkeinen
Browse files

video: vfb: Remove incorrect check



'yoffset' is unsigned and hence cannot be less than 0.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent b1dfee60
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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 ||