summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb/vb_init.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-05-18 00:19:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-17 15:47:18 -0700
commit7580d7feb44516546fde01aeb0cfca0860c690d3 (patch)
tree060a7b4e5d88850f3dabaa0fc405bc390b63fae8 /drivers/staging/xgifb/vb_init.c
parentf13ab92effb94c8fc5eade75f6f246facd7ef5be (diff)
staging/xgifb: Remove dead assignments/increments
The code now contains several dead assignments which are shadowed by another assignment a few lines later. -> This patch removes them (and possibly associated code). Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb/vb_init.c')
-rw-r--r--drivers/staging/xgifb/vb_init.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c
index 090c424d4670..5c72104704ac 100644
--- a/drivers/staging/xgifb/vb_init.c
+++ b/drivers/staging/xgifb/vb_init.c
@@ -1296,7 +1296,6 @@ unsigned char XGIInitNew(struct pci_dev *pdev)
xgifb_reg_set(pVBInfo->Part1Port, 0x00, 0x00);
/* chk if BCLK>=100MHz */
temp1 = xgifb_reg_get(pVBInfo->P3d4, 0x7B);
- temp = (unsigned char) ((temp1 >> 4) & 0x0F);
xgifb_reg_set(pVBInfo->Part1Port,
0x02, XGI330_CRT2Data_1_2);