staging: vt6656: use set_bit to set flags
Replacing MP_SET_FLAG Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2746321ef4
commit
4c3b0d4572
2 changed files with 2 additions and 3 deletions
|
@ -402,7 +402,6 @@ struct vnt_private {
|
||||||
(uVar)++; \
|
(uVar)++; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#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))
|
||||||
#define MP_TEST_FLAGS(_M, _F) (((_M)->flags & (_F)) == (_F))
|
#define MP_TEST_FLAGS(_M, _F) (((_M)->flags & (_F)) == (_F))
|
||||||
|
|
||||||
|
|
|
@ -596,7 +596,7 @@ static void vnt_stop(struct ieee80211_hw *hw)
|
||||||
|
|
||||||
ieee80211_stop_queues(hw);
|
ieee80211_stop_queues(hw);
|
||||||
|
|
||||||
MP_SET_FLAG(priv, DEVICE_FLAGS_DISCONNECTED);
|
set_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags);
|
||||||
|
|
||||||
cancel_delayed_work_sync(&priv->run_command_work);
|
cancel_delayed_work_sync(&priv->run_command_work);
|
||||||
|
|
||||||
|
@ -1051,7 +1051,7 @@ static void vt6656_disconnect(struct usb_interface *intf)
|
||||||
usb_set_intfdata(intf, NULL);
|
usb_set_intfdata(intf, NULL);
|
||||||
usb_put_dev(interface_to_usbdev(intf));
|
usb_put_dev(interface_to_usbdev(intf));
|
||||||
|
|
||||||
priv->flags |= DEVICE_FLAGS_UNPLUG;
|
set_bit(DEVICE_FLAGS_UNPLUG, &priv->flags);
|
||||||
|
|
||||||
ieee80211_free_hw(priv->hw);
|
ieee80211_free_hw(priv->hw);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue