]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: xgifb: vb_setmode: delete empty if statement blocks
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 27 Nov 2011 21:03:18 +0000 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 21:20:13 +0000 (06:20 +0900)
Delete empty if statement blocks. The patch eliminates following
checkpatch.pl warnings:

WARNING: suspect code indent for conditional statements (8, 8)

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/vb_setmode.c

index ad00f2ae036609fe43e6fc6d6d3e8e54bdf5a2e1..0b780024292811b6976d2c5f440f487acd290e44 100644 (file)
@@ -2312,9 +2312,7 @@ static void *XGI_GetTVPtr(unsigned short BX, unsigned short ModeNo,
        }
 
        /* 07/05/22 */
-       if (table == 0x00) {
-       } else if (table == 0x01) {
-       } else if (table == 0x04) {
+       if (table == 0x04) {
                switch (tempdi[i].DATAPTR) {
                case 0:
                        return &XGI_ExtPALData[tempal];
@@ -2378,7 +2376,6 @@ static void *XGI_GetTVPtr(unsigned short BX, unsigned short ModeNo,
                default:
                        break;
                }
-       } else if (table == 0x06) {
        }
        return NULL;
 }