]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6656: use clear_bit to remove device flag
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 24 Jul 2014 20:13:18 +0000 (21:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 22:09:59 +0000 (15:09 -0700)
Replacing MP_CLEAR_FLAG

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

index 5ac80d8df4712762e2f9702051e148db75830a2a..21f810eb162f03d522dfb5135300a30ad62e69a9 100644 (file)
@@ -402,7 +402,6 @@ struct vnt_private {
                (uVar)++;                               \
 }
 
-#define MP_CLEAR_FLAG(_M, _F)            ((_M)->flags &= ~(_F))
 #define MP_TEST_FLAGS(_M, _F)            (((_M)->flags & (_F)) == (_F))
 
 int vnt_init(struct vnt_private *priv);
index 7798221c9ba51954d33d53c6f7a7b9bcb25ef631..d729d949ce27a79103827084822f1d8afd89a8df 100644 (file)
@@ -551,7 +551,7 @@ static int vnt_start(struct ieee80211_hw *hw)
                return -ENOMEM;
        }
 
-       MP_CLEAR_FLAG(priv, DEVICE_FLAGS_DISCONNECTED);
+       clear_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags);
 
        if (device_init_registers(priv) == false) {
                dev_dbg(&priv->usb->dev, " init register fail\n");
@@ -1025,7 +1025,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
 
        usb_device_reset(priv);
 
-       MP_CLEAR_FLAG(priv, DEVICE_FLAGS_DISCONNECTED);
+       clear_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags);
        vnt_reset_command_timer(priv);
 
        vnt_schedule_command(priv, WLAN_CMD_INIT_MAC80211);