staging/xgifb: Remove code without effect
authorPeter Huewe <peterhuewe@gmx.de>
Fri, 15 Feb 2013 19:37:11 +0000 (20:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2013 23:12:40 +0000 (15:12 -0800)
The tempal variable is assigned and then immediately overwritten.
-> remove everything without effect.

The inb is kept for possible side effects.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_setmode.c

index f5a9bb2e5473c5eaf036a32fd732c4a18c6d071e..a602d435ca01b645c7218dbb69742adbfe24cee7 100644 (file)
@@ -1778,14 +1778,7 @@ static unsigned char XGI_GetVCLKPtr(unsigned short RefreshRateTableIndex,
                }
        } /* {End of VB} */
 
-       tempal = inb((pVBInfo->P3ca + 0x02));
-       tempal = tempal >> 2;
-       tempal &= 0x03;
-
-       /* for Dot8 Scaling LCD */
-       if ((pVBInfo->LCDInfo & EnableScalingLCD) && (modeflag & Charx8Dot))
-               tempal = tempal ^ tempal; /* ; set to VCLK25MHz always */
-
+       inb((pVBInfo->P3ca + 0x02));
        tempal = XGI330_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK;
        return tempal;
 }