From: Zhang Shengju Date: Thu, 3 Mar 2016 01:16:57 +0000 (+0000) Subject: wireless: use reset to set mac header X-Git-Tag: v4.14-rc1~3609^2~129^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ef523aeeee88130e5de10adac719dbd6fa266e5;p=platform%2Fkernel%2Flinux-rpi.git wireless: use reset to set mac header 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 Signed-off-by: David S. Miller --- diff --git a/net/wireless/util.c b/net/wireless/util.c index c7f6820..9f440a9 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -636,7 +636,7 @@ int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr, /* Update skb pointers to various headers since this modified frame * is going to go through Linux networking code that may potentially * need things like pointer to IP header. */ - skb_set_mac_header(skb, 0); + skb_reset_mac_header(skb); skb_set_network_header(skb, nh_pos); skb_set_transport_header(skb, h_pos);