Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Huewe and committed by
Greg Kroah-Hartman
516354e0 9388ad9c

+1 -8
+1 -8
drivers/staging/xgifb/vb_setmode.c
··· 1778 1778 } 1779 1779 } /* {End of VB} */ 1780 1780 1781 - tempal = inb((pVBInfo->P3ca + 0x02)); 1782 - tempal = tempal >> 2; 1783 - tempal &= 0x03; 1784 - 1785 - /* for Dot8 Scaling LCD */ 1786 - if ((pVBInfo->LCDInfo & EnableScalingLCD) && (modeflag & Charx8Dot)) 1787 - tempal = tempal ^ tempal; /* ; set to VCLK25MHz always */ 1788 - 1781 + inb((pVBInfo->P3ca + 0x02)); 1789 1782 tempal = XGI330_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK; 1790 1783 return tempal; 1791 1784 }