staging: vt6656: remove macro MP_IS_READY
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 24 Jul 2014 20:13:14 +0000 (21:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 22:09:58 +0000 (15:09 -0700)
Just test FLag and remove not.

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

index 273c6634ea98b8d267b66c9a0dce125213fca470..58fbaabb8ec2ccfe8517fbd5283825bf510a78e7 100644 (file)
@@ -411,8 +411,6 @@ struct vnt_private {
 #define MP_CLEAR_FLAG(_M, _F)            ((_M)->Flags &= ~(_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);
 
 #endif
index c23a509ca1b099ac9dd00f86f611caa810cd2fda..ab95a07ee15e8170870aecc70dfa4a70bcec47a8 100644 (file)
@@ -289,7 +289,7 @@ int vnt_tx_context(struct vnt_private *priv,
        int status;
        struct urb *urb;
 
-       if (!(MP_IS_READY(priv))) {
+       if (priv->Flags & fMP_DISCONNECTED) {
                context->in_use = false;
                return STATUS_RESOURCES;
        }