]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 34ca2a6799bd6ac61065ba9305f4626518e2e0cf..ddf738511869023540025e949e6bd9111dac6e5e 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 757d500deef110b3b48fd9b343f07fb4a846a704..358c6208db82d371314266e08da9742268b838eb 100644 (file)
@@ -368,7 +368,6 @@ struct vnt_private {
        int bShortSlotTime;
        int bBarkerPreambleMd;
 
-       int bRadioControlOff;
        int bRadioOff;
 
        /* Power save */
index ff4e18d2e8f7bcf7aed8c85ee9c71de300f7ff54..68367414080f9017371ab96b7d2f8113c00b9bcc 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);