From: Aaro Koskinen Date: Mon, 10 Sep 2012 21:15:24 +0000 (+0300) Subject: staging: xgifb: XGI_GetLcdPtr: delete dead code X-Git-Tag: v3.7-rc1~173^2~415 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=378fd8a582d85b18d66c79a251b17a53a627cf95;p=profile%2Fivi%2Fkernel-x86-ivi.git staging: xgifb: XGI_GetLcdPtr: delete dead code Only table values 0..5 are ever used. Signed-off-by: Aaro Koskinen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index a1ee4c1..c97e438 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; }