]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: xgifb: Remove useless condition.
authorMiguel Gómez <magomez@igalia.com>
Fri, 6 Jul 2012 10:40:54 +0000 (12:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2012 23:59:32 +0000 (16:59 -0700)
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>
drivers/staging/xgifb/XGI_main_26.c

index 0f49a2104d40b91300a12996f6e33332c26713a6..64ffd70eb7dcf2da0eb179bfac4f12b138a3e9b3 100644 (file)
@@ -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");