Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/* clear all keys */
priv->key_entry_inuse = 0;
- if ((priv->flags & DEVICE_FLAGS_UNPLUG) == false)
+ if (!test_bit(DEVICE_FLAGS_UNPLUG, &priv->flags))
vnt_mac_shutdown(priv);
ieee80211_stop_queues(hw);
{
int status = 0;
- if (priv->flags & DEVICE_FLAGS_DISCONNECTED)
+ if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags))
return STATUS_FAILURE;
mutex_lock(&priv->usb_lock);
{
int status;
- if (priv->flags & DEVICE_FLAGS_DISCONNECTED)
+ if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags))
return STATUS_FAILURE;
mutex_lock(&priv->usb_lock);
int status;
struct urb *urb;
- if (priv->flags & DEVICE_FLAGS_DISCONNECTED) {
+ if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags)) {
context->in_use = false;
return STATUS_RESOURCES;
}
struct vnt_private *priv =
container_of(work, struct vnt_private, run_command_work.work);
- if (priv->flags & DEVICE_FLAGS_DISCONNECTED)
+ if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags))
return;
if (priv->cmd_running != true)