Commit b679ad2f authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: Remove flags fMP_POST_READS and fMP_POST_WRITES

MP_IS_READY(fMP_DISCONNECTED) is used to block thread in vnt_tx_context
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d83ba4a1
...@@ -406,8 +406,6 @@ struct vnt_private { ...@@ -406,8 +406,6 @@ struct vnt_private {
} }
#define fMP_DISCONNECTED 0x00000002 #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_SET_FLAG(_M, _F) ((_M)->Flags |= (_F))
#define MP_CLEAR_FLAG(_M, _F) ((_M)->Flags &= ~(_F)) #define MP_CLEAR_FLAG(_M, _F) ((_M)->Flags &= ~(_F))
......
...@@ -552,8 +552,6 @@ static int vnt_start(struct ieee80211_hw *hw) ...@@ -552,8 +552,6 @@ static int vnt_start(struct ieee80211_hw *hw)
} }
MP_CLEAR_FLAG(priv, fMP_DISCONNECTED); 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) { if (device_init_registers(priv) == false) {
dev_dbg(&priv->usb->dev, " init register fail\n"); dev_dbg(&priv->usb->dev, " init register fail\n");
...@@ -601,8 +599,6 @@ static void vnt_stop(struct ieee80211_hw *hw) ...@@ -601,8 +599,6 @@ static void vnt_stop(struct ieee80211_hw *hw)
ieee80211_stop_queues(hw); ieee80211_stop_queues(hw);
MP_SET_FLAG(priv, fMP_DISCONNECTED); 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); cancel_delayed_work_sync(&priv->run_command_work);
......
...@@ -289,7 +289,7 @@ int vnt_tx_context(struct vnt_private *priv, ...@@ -289,7 +289,7 @@ int vnt_tx_context(struct vnt_private *priv,
int status; int status;
struct urb *urb; struct urb *urb;
if (!(MP_IS_READY(priv) && priv->Flags & fMP_POST_WRITES)) { if (!(MP_IS_READY(priv))) {
context->in_use = false; context->in_use = false;
return STATUS_RESOURCES; return STATUS_RESOURCES;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment