projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63c713e
)
mac80211: tx: avoid variable shadowing
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 9 Nov 2018 10:16:46 +0000
(11:16 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 9 Nov 2018 10:17:25 +0000
(11:17 +0100)
We have a bool and an __le16 called qos, rename the inner __le16
to 'qoshdr' to make it more obvious and to avoid sparse warnings.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c
patch
|
blob
|
history
diff --git
a/net/mac80211/tx.c
b/net/mac80211/tx.c
index e0ccee23fbcdb209a6f7f5704c2aea2d2ef74782..582b3d49f89177000aa5850e7f7d970563698eab 100644
(file)
--- a/
net/mac80211/tx.c
+++ b/
net/mac80211/tx.c
@@
-4579,7
+4579,7
@@
struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw,
IEEE80211_STYPE_NULLFUNC |
IEEE80211_FCTL_TODS);
if (qos) {
- __le16 qos = cpu_to_le16(7);
+ __le16 qos
hdr
= cpu_to_le16(7);
BUILD_BUG_ON((IEEE80211_STYPE_QOS_NULLFUNC |
IEEE80211_STYPE_NULLFUNC) !=
@@
-4588,7
+4588,7
@@
struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw,
cpu_to_le16(IEEE80211_STYPE_QOS_NULLFUNC);
skb->priority = 7;
skb_set_queue_mapping(skb, IEEE80211_AC_VO);
- skb_put_data(skb, &qos
, sizeof(qos
));
+ skb_put_data(skb, &qos
hdr, sizeof(qoshdr
));
}
memcpy(nullfunc->addr1, ifmgd->bssid, ETH_ALEN);