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

staging: vt6656: remove macro MP_IS_READY

Just test FLag and remove not.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b679ad2f
...@@ -411,8 +411,6 @@ struct vnt_private { ...@@ -411,8 +411,6 @@ struct vnt_private {
#define MP_CLEAR_FLAG(_M, _F) ((_M)->Flags &= ~(_F)) #define MP_CLEAR_FLAG(_M, _F) ((_M)->Flags &= ~(_F))
#define MP_TEST_FLAGS(_M, _F) (((_M)->Flags & (_F)) == (_F)) #define MP_TEST_FLAGS(_M, _F) (((_M)->Flags & (_F)) == (_F))
#define MP_IS_READY(_M) (((_M)->Flags & fMP_DISCONNECTED) == 0)
int vnt_init(struct vnt_private *priv); int vnt_init(struct vnt_private *priv);
#endif #endif
...@@ -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))) { if (priv->Flags & fMP_DISCONNECTED) {
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