diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-03-03 02:16:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-05 04:45:13 +0100 |
commit | d57a544d71092a81c2064ff242009a38e7b1a631 (patch) | |
tree | 766d611834e1081f0430015a686de5d07bee4c62 /net/mac80211/status.c | |
parent | mac80211_hwsim: use reset to set mac header (diff) | |
download | linux-d57a544d71092a81c2064ff242009a38e7b1a631.tar.xz linux-d57a544d71092a81c2064ff242009a38e7b1a631.zip |
mac80211: use reset to set header pointer
Since offset is zero, it's not necessary to use set function. Reset
function is straightforward, and will remove the unnecessary add
operation in set function.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r-- | net/mac80211/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index 6101deb805a8..8b1b2ea03eb5 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -697,7 +697,7 @@ void ieee80211_tx_monitor(struct ieee80211_local *local, struct sk_buff *skb, rtap_len, shift); /* XXX: is this sufficient for BPF? */ - skb_set_mac_header(skb, 0); + skb_reset_mac_header(skb); skb->ip_summed = CHECKSUM_UNNECESSARY; skb->pkt_type = PACKET_OTHERHOST; skb->protocol = htons(ETH_P_802_2); |