aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2012-09-11 00:15:24 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-10 15:48:17 -0700
commit378fd8a582d85b18d66c79a251b17a53a627cf95 (patch)
tree249556d48e91741648b2664de4b758a1556816ba /drivers/staging/xgifb
parentbc9ffcc2c6c08f8fe58d200afe482c59565f7e58 (diff)
staging: xgifb: XGI_GetLcdPtr: delete dead code
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>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/vb_setmode.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c
index a1ee4c104f6..c97e438e629 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -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;
}
@@ -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;
}