staging: vt6656: struct vnt_private remove unused variable bRadioOff
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 18 Jul 2014 22:00:53 +0000 (23:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:11:28 +0000 (16:11 -0700)
The variable flips from true to false but does nothing

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

index ddf738511869023540025e949e6bd9111dac6e5e..ca77a191128347bebb830bc1fd86227bdfd4d49f 100644 (file)
@@ -734,8 +734,6 @@ int vnt_radio_power_off(struct vnt_private *priv)
 {
        int ret = true;
 
-       priv->bRadioOff = true;
-
        switch (priv->byRFType) {
        case RF_AL2230:
        case RF_AL2230S:
@@ -774,8 +772,6 @@ int vnt_radio_power_on(struct vnt_private *priv)
        if (priv->bHWRadioOff == true)
                return false;
 
-       priv->bRadioOff = false;
-
        vnt_exit_deep_sleep(priv);
 
        vnt_mac_reg_bits_on(priv, MAC_REG_HOSTCR, HOSTCR_RXON);
index 358c6208db82d371314266e08da9742268b838eb..69cac959a9647e7f51672fbb6dba1c83d71ac7af 100644 (file)
@@ -368,8 +368,6 @@ struct vnt_private {
        int bShortSlotTime;
        int bBarkerPreambleMd;
 
-       int bRadioOff;
-
        /* Power save */
        u16 current_aid;