staging: xgifb: XGI_GetLCDInfo(): delete IF_DEF_LVDS check
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 8 Feb 2013 22:03:46 +0000 (00:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2013 23:39:58 +0000 (15:39 -0800)
Delete IF_DEF_LVDS check, this function is never called when it's true.

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

index faa25b9218c218d85e9d2f4d563198c4bcff1c0e..872eea422080fbdac316b1dfb34d14f310a3e0f6 100644 (file)
@@ -2240,21 +2240,18 @@ static unsigned char XGI_GetLCDInfo(unsigned short ModeNo,
 
        tempax = pVBInfo->LCDCapList[LCDIdIndex].LCD_Capability;
 
-       if (pVBInfo->IF_DEF_LVDS == 0) { /* shampoo */
-               if (((pVBInfo->VBType & VB_SIS302LV) || (pVBInfo->VBType
-                               & VB_XGI301C)) && (tempax & XGI_LCDDualLink)) {
-                       tempbx |= SetLCDDualLink;
-               }
-
-               if ((pVBInfo->LCDResInfo == Panel_1400x1050) && (pVBInfo->VBInfo
-                               & SetCRT2ToLCD) && (resinfo == 9) &&
-                               (!(tempbx & EnableScalingLCD)))
-                       /*
-                        * set to center in 1280x1024 LCDB
-                        * for Panel_1400x1050
-                        */
-                       tempbx |= SetLCDtoNonExpanding;
-       }
+       if (((pVBInfo->VBType & VB_SIS302LV) ||
+            (pVBInfo->VBType & VB_XGI301C)) && (tempax & XGI_LCDDualLink))
+               tempbx |= SetLCDDualLink;
+
+       if ((pVBInfo->LCDResInfo == Panel_1400x1050) &&
+           (pVBInfo->VBInfo & SetCRT2ToLCD) && (resinfo == 9) &&
+           (!(tempbx & EnableScalingLCD)))
+               /*
+                * set to center in 1280x1024 LCDB
+                * for Panel_1400x1050
+                */
+               tempbx |= SetLCDtoNonExpanding;
 
        if (pVBInfo->VBInfo & SetInSlaveMode) {
                if (pVBInfo->VBInfo & SetNotSimuMode)