From: Peter Huewe Date: Fri, 15 Feb 2013 19:37:11 +0000 (+0100) Subject: staging/xgifb: Remove code without effect X-Git-Tag: v3.9-rc1~127^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=516354e0b458c3c16555364e105bdee5cd1cf5f1;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index f5a9bb2e547..a602d435ca0 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; }