Skip to content

Commit

Permalink
staging: xgifb: vb_setmode: delete empty if statement blocks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 337a1a8 commit ebe3302
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -2378,7 +2376,6 @@ static void *XGI_GetTVPtr(unsigned short BX, unsigned short ModeNo,
default:
break;
}
} else if (table == 0x06) {
}
return NULL;
}
Expand Down

0 comments on commit ebe3302

Please sign in to comment.