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

Commit f6002041 authored by Miguel Gómez's avatar Miguel Gómez Committed by Greg Kroah-Hartman
Browse files

Staging: xgifb: Remove useless condition.



Remove last if branch in XGIfb_do_set_var(), as it has no action assigned.

Signed-off-by: default avatarMiguel Gómez <magomez@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3bcc2460
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -973,8 +973,6 @@ static int XGIfb_do_set_var(struct fb_var_screeninfo *var, int isactive,
		vtotal <<= 1;
	else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE)
		vtotal <<= 2;
	else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) {
	}

	if (!htotal || !vtotal) {
		pr_debug("Invalid 'var' information\n");