staging: vt6656: Remove flags fMP_POST_READS and fMP_POST_WRITES
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 24 Jul 2014 20:13:13 +0000 (21:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 22:09:58 +0000 (15:09 -0700)
MP_IS_READY(fMP_DISCONNECTED) is used to block thread in vnt_tx_context

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
drivers/staging/vt6656/usbpipe.c

index 6b7bb8c99b1e772a41acab7e00302f09da7a7d93..273c6634ea98b8d267b66c9a0dce125213fca470 100644 (file)
@@ -406,8 +406,6 @@ struct vnt_private {
 }
 
 #define fMP_DISCONNECTED                    0x00000002
-#define fMP_POST_READS                      0x00000100
-#define fMP_POST_WRITES                     0x00000200
 
 #define MP_SET_FLAG(_M, _F)             ((_M)->Flags |= (_F))
 #define MP_CLEAR_FLAG(_M, _F)            ((_M)->Flags &= ~(_F))
index b99def77c44a09abbcd899ecc83b1afbd1a4a42a..f887bc07f82a272711795e96e2dc06ebf3139a5d 100644 (file)
@@ -552,8 +552,6 @@ static int vnt_start(struct ieee80211_hw *hw)
        }
 
        MP_CLEAR_FLAG(priv, fMP_DISCONNECTED);
-       MP_SET_FLAG(priv, fMP_POST_READS);
-       MP_SET_FLAG(priv, fMP_POST_WRITES);
 
        if (device_init_registers(priv) == false) {
                dev_dbg(&priv->usb->dev, " init register fail\n");
@@ -601,8 +599,6 @@ static void vnt_stop(struct ieee80211_hw *hw)
        ieee80211_stop_queues(hw);
 
        MP_SET_FLAG(priv, fMP_DISCONNECTED);
-       MP_CLEAR_FLAG(priv, fMP_POST_WRITES);
-       MP_CLEAR_FLAG(priv, fMP_POST_READS);
 
        cancel_delayed_work_sync(&priv->run_command_work);
 
index 7b050ba92504d8a7ad5e9d5e39ff8e635c1ae1ec..c23a509ca1b099ac9dd00f86f611caa810cd2fda 100644 (file)
@@ -289,7 +289,7 @@ int vnt_tx_context(struct vnt_private *priv,
        int status;
        struct urb *urb;
 
-       if (!(MP_IS_READY(priv) && priv->Flags & fMP_POST_WRITES)) {
+       if (!(MP_IS_READY(priv))) {
                context->in_use = false;
                return STATUS_RESOURCES;
        }
This page took 0.026651 seconds and 5 git commands to generate.