staging: vt6656: Remove unsed macro DEVICE_FLAGS_OPENED
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 24 Jul 2014 20:13:15 +0000 (21:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 22:09:58 +0000 (15:09 -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 58fbaabb8ec2ccfe8517fbd5283825bf510a78e7..ac4c7485463dab392627a59e962350c87c451652 100644 (file)
@@ -264,9 +264,6 @@ enum {
 /* flags for options */
 #define     DEVICE_FLAGS_UNPLUG          0x00000001UL
 
-/* flags for driver status */
-#define     DEVICE_FLAGS_OPENED          0x00010000UL
-
 struct vnt_private {
        /* mac80211 */
        struct ieee80211_hw *hw;
index f887bc07f82a272711795e96e2dc06ebf3139a5d..3cfbd31f94d17c86f923f31eb65b67cec73441c1 100644 (file)
@@ -562,8 +562,6 @@ static int vnt_start(struct ieee80211_hw *hw)
 
        vnt_int_start_interrupt(priv);
 
-       priv->flags |= DEVICE_FLAGS_OPENED;
-
        ieee80211_wake_queues(hw);
 
        return 0;
@@ -604,8 +602,6 @@ static void vnt_stop(struct ieee80211_hw *hw)
 
        priv->cmd_running = false;
 
-       priv->flags &= ~DEVICE_FLAGS_OPENED;
-
        device_free_tx_bufs(priv);
        device_free_rx_bufs(priv);
        device_free_int_bufs(priv);