diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-10 17:04:55 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:50 -0400 |
commit | 31c7711b509d470ab1e175e7bb98ea66a82aa916 (patch) | |
tree | 0d6465c947d163bf7bf0803624533e6af964ef50 /net/ieee80211 | |
parent | 4209fb601c0a0e0a9d90c0008f350dd345c8b7de (diff) |
[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 <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee80211')
-rw-r--r-- | net/ieee80211/ieee80211_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c index be5ffaf6e8a5..7f5a352800a0 100644 --- a/net/ieee80211/ieee80211_rx.c +++ b/net/ieee80211/ieee80211_rx.c | |||
@@ -793,7 +793,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, | |||
793 | skb2->protocol = __constant_htons(ETH_P_802_3); | 793 | skb2->protocol = __constant_htons(ETH_P_802_3); |
794 | skb_reset_mac_header(skb2); | 794 | skb_reset_mac_header(skb2); |
795 | skb_reset_network_header(skb2); | 795 | skb_reset_network_header(skb2); |
796 | /* skb2->nh.raw = skb2->data + ETH_HLEN; */ | 796 | /* skb2->nh.raw += ETH_HLEN; */ |
797 | dev_queue_xmit(skb2); | 797 | dev_queue_xmit(skb2); |
798 | } | 798 | } |
799 | #endif | 799 | #endif |