Skip to content

Commit

Permalink
staging: xgifb: XGI_GetLcdPtr: delete dead code
Browse files Browse the repository at this point in the history
Only table values 0..5 are ever used.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent bc9ffcc commit 378fd8a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1365,9 +1365,9 @@ static void *XGI_GetLcdPtr(unsigned short BX, unsigned short ModeNo,
tempcx = LCDLenList[tempbx];

if (pVBInfo->LCDInfo & EnableScalingLCD) { /* ScaleLCD */
if ((tempbx == 5) || (tempbx) == 7)
if (tempbx == 5)
tempcx = LCDDesDataLen2;
else if ((tempbx == 3) || (tempbx == 8))
else if (tempbx == 3)
tempcx = LVDSDesDataLen2;
}

Expand All @@ -1388,12 +1388,6 @@ static void *XGI_GetLcdPtr(unsigned short BX, unsigned short ModeNo,
case 5:
tempdi = XGI_LCDDesDataTable;
break;
case 6:
case 7:
case 8:
case 9:
tempdi = NULL;
break;
default:
break;
}
Expand Down

0 comments on commit 378fd8a

Please sign in to comment.