mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
[SK_BUFF]: Some more simple skb_reset_network_header conversions
This time of the type: skb->nh.iph = (struct iphdr *)skb->data; That is completely equivalent to: skb->nh.raw = skb->data; Wonder why people love casts... :-) Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4209fb601c
commit
31c7711b50
3 changed files with 4 additions and 4 deletions
|
|
@ -793,7 +793,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
|
|||
skb2->protocol = __constant_htons(ETH_P_802_3);
|
||||
skb_reset_mac_header(skb2);
|
||||
skb_reset_network_header(skb2);
|
||||
/* skb2->nh.raw = skb2->data + ETH_HLEN; */
|
||||
/* skb2->nh.raw += ETH_HLEN; */
|
||||
dev_queue_xmit(skb2);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue