diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-02-15 20:37:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-15 15:12:40 -0800 |
commit | 516354e0b458c3c16555364e105bdee5cd1cf5f1 (patch) | |
tree | 193f1dcab814a622683c639fe2865d7df173f7b6 /drivers/staging | |
parent | 9388ad9c6a3188015b407cacabd68004f93f2165 (diff) | |
download | op-kernel-dev-516354e0b458c3c16555364e105bdee5cd1cf5f1.zip op-kernel-dev-516354e0b458c3c16555364e105bdee5cd1cf5f1.tar.gz |
staging/xgifb: Remove code without effect
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/xgifb/vb_setmode.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index f5a9bb2..a602d43 100644 --- a/drivers/staging/xgifb/vb_setmode.c +++ b/drivers/staging/xgifb/vb_setmode.c @@ -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; } |