diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-03-03 01:16:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-04 22:45:13 -0500 |
commit | d57a544d71092a81c2064ff242009a38e7b1a631 (patch) | |
tree | 766d611834e1081f0430015a686de5d07bee4c62 /net/mac80211/rx.c | |
parent | 6b163a85478b27748bad219fe3ead7ac87217265 (diff) | |
download | op-kernel-dev-d57a544d71092a81c2064ff242009a38e7b1a631.zip op-kernel-dev-d57a544d71092a81c2064ff242009a38e7b1a631.tar.gz |
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/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 9127957..5690e4c 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -3101,7 +3101,7 @@ static void ieee80211_rx_cooked_monitor(struct ieee80211_rx_data *rx, ieee80211_add_rx_radiotap_header(local, skb, rate, needed_headroom, false); - 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); |