diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-07-24 21:13:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-24 15:09:58 -0700 |
commit | f370872f7260073c9067d9b3e490bec0ba2af111 (patch) | |
tree | 7fb04be83cf7a2d281de3e067b6b5edf5499d334 /drivers/staging/vt6656 | |
parent | b679ad2fdb4b306009c60712c9ac0dff8e149ecb (diff) | |
download | linux-stable-f370872f7260073c9067d9b3e490bec0ba2af111.tar.gz linux-stable-f370872f7260073c9067d9b3e490bec0ba2af111.tar.bz2 linux-stable-f370872f7260073c9067d9b3e490bec0ba2af111.zip |
staging: vt6656: remove macro MP_IS_READY
Just test FLag and remove not.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/device.h | 2 | ||||
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 273c6634ea98..58fbaabb8ec2 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -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 diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index c23a509ca1b0..ab95a07ee15e 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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; } |