staging/xgifb: Remove unused variable
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 5 Feb 2013 19:38:35 +0000 (20:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:55:08 +0000 (11:55 -0800)
After the patch
'staging/xgifb: Don't write the same values x times'
the local variable i is unused, which leads to the following warning:

driverrs/staging/xgifb/vb_init.c: In function
‘XGINew_SetDRAMDefaultRegister340’:
drivers/staging/xgifb/vb_init.c:433:43: warning: unused variable ‘i’
[-Wunused-variable]

This patch fixes this

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

index 1c6e0f3ada124c477317de864c8f932ca99453fa..7b8f41d0ad7cc6ccd72b7e693209195027a32ac9 100644 (file)
@@ -430,7 +430,7 @@ static void XGINew_SetDRAMDefaultRegister340(
                struct xgi_hw_device_info *HwDeviceExtension,
                unsigned long Port, struct vb_device_info *pVBInfo)
 {
-       unsigned char temp, temp1, temp2, temp3, i, j, k;
+       unsigned char temp, temp1, temp2, temp3, j, k;
 
        unsigned long P3d4 = Port, P3c4 = Port - 0x10;