mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
Staging: xgifb: Remove useless condition.
Remove last if branch in XGIfb_do_set_var(), as it has no action assigned. Signed-off-by: Miguel Gómez <magomez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3bcc246016
commit
f6002041af
1 changed files with 0 additions and 2 deletions
|
@ -973,8 +973,6 @@ static int XGIfb_do_set_var(struct fb_var_screeninfo *var, int isactive,
|
||||||
vtotal <<= 1;
|
vtotal <<= 1;
|
||||||
else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE)
|
else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_DOUBLE)
|
||||||
vtotal <<= 2;
|
vtotal <<= 2;
|
||||||
else if ((var->vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) {
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!htotal || !vtotal) {
|
if (!htotal || !vtotal) {
|
||||||
pr_debug("Invalid 'var' information\n");
|
pr_debug("Invalid 'var' information\n");
|
||||||
|
|
Loading…
Reference in a new issue