staging: vt6656: struct vnt_private remove unused variable bRadioControlOff
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 18 Jul 2014 22:00:52 +0000 (23:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:11:28 +0000 (16:11 -0700)
This variable is never set.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c

index 34ca2a6..ddf7385 100644 (file)
@@ -771,7 +771,7 @@ int vnt_radio_power_on(struct vnt_private *priv)
 {
        int ret = true;
 
-       if (priv->bHWRadioOff == true || priv->bRadioControlOff == true)
+       if (priv->bHWRadioOff == true)
                return false;
 
        priv->bRadioOff = false;
index 757d500..358c620 100644 (file)
@@ -368,7 +368,6 @@ struct vnt_private {
        int bShortSlotTime;
        int bBarkerPreambleMd;
 
-       int bRadioControlOff;
        int bRadioOff;
 
        /* Power save */
index ff4e18d..6836741 100644 (file)
@@ -381,8 +381,7 @@ static int device_init_registers(struct vnt_private *priv)
 
        vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL0, 0x01);
 
-       if ((priv->bHWRadioOff == true) ||
-                               (priv->bRadioControlOff == true)) {
+       if (priv->bHWRadioOff == true) {
                vnt_radio_power_off(priv);
        } else {
                vnt_radio_power_on(priv);