staging: vt6656: Remove unused variable byRevId.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 17 May 2014 08:50:31 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2014 16:58:30 +0000 (09:58 -0700)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c

index 59d3828bf7c284f39156dbfcfa79afa1aad7ae77..aefbe9382ff77703581eb020e15f5f0d73ead6ce 100644 (file)
@@ -409,8 +409,6 @@ struct vnt_private {
 
        u32 rx_bytes;
 
-       u8 byRevId;
-
        u32 flags;
        unsigned long Flags;
 
index 1b58ccaac1f63e97c8a876f6d8ef2caccc0e0f3d..68ae97c5617bb43515d013d2957c6843dbe2616a 100644 (file)
@@ -387,7 +387,7 @@ static int device_init_registers(struct vnt_private *pDevice)
 
        pDevice->byTopOFDMBasicRate = RATE_24M;
        pDevice->byTopCCKBasicRate = RATE_1M;
-       pDevice->byRevId = 0;
+
        /* target to IF pin while programming to RF chip */
        pDevice->byCurPwr = 0xFF;
 
@@ -508,11 +508,6 @@ static int device_init_registers(struct vnt_private *pDevice)
        /* get RFType */
        pDevice->byRFType = init_rsp->rf_type;
 
-       if ((pDevice->byRFType & RF_EMU) != 0) {
-               /* force change RevID for VT3253 emu */
-               pDevice->byRevId = 0x80;
-       }
-
        /* load vt3266 calibration parameters in EEPROM */
        if (pDevice->byRFType == RF_VT3226D0) {
                if ((pDevice->abyEEPROM[EEP_OFS_MAJOR_VER] == 0x1) &&