Commit c6458847 authored by Dan Carpenter's avatar Dan Carpenter Committed by Zefan Li

rndis_wlan: harmless issue calling set_bit()

commit e3958e9d upstream.

These are used like:

	set_bit(WORK_LINK_UP, &priv->work_pending);

The problem is that set_bit() takes the actual bit number and not a mask
so static checkers get upset.  It doesn't affect run time because we do
it consistently, but we may as well clean it up.

Fixes: 6010ce07 ('rndis_wlan: do link-down state change in worker thread')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent 9219e070
...@@ -407,9 +407,9 @@ struct ndis_80211_pmkid { ...@@ -407,9 +407,9 @@ struct ndis_80211_pmkid {
#define CAP_MODE_80211G 4 #define CAP_MODE_80211G 4
#define CAP_MODE_MASK 7 #define CAP_MODE_MASK 7
#define WORK_LINK_UP (1<<0) #define WORK_LINK_UP 0
#define WORK_LINK_DOWN (1<<1) #define WORK_LINK_DOWN 1
#define WORK_SET_MULTICAST_LIST (1<<2) #define WORK_SET_MULTICAST_LIST 2
#define RNDIS_WLAN_ALG_NONE 0 #define RNDIS_WLAN_ALG_NONE 0
#define RNDIS_WLAN_ALG_WEP (1<<0) #define RNDIS_WLAN_ALG_WEP (1<<0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment