Commit 7dac6d9391b89fd85bb5eddd18506ae759c9a57b
Committed by
Antonio Quartulli
1 parent
a2f2b6cd41
batman-adv: Remove unused post-VLAN ethhdr in batadv_gw_dhcp_recipient_get
Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Showing 1 changed file with 0 additions and 5 deletions Side-by-side Diff
net/batman-adv/gateway_client.c
... | ... | @@ -753,11 +753,6 @@ |
753 | 753 | if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) |
754 | 754 | return BATADV_DHCP_NO; |
755 | 755 | |
756 | - /* skb->data might have been reallocated by pskb_may_pull() */ | |
757 | - ethhdr = eth_hdr(skb); | |
758 | - if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) | |
759 | - ethhdr = (struct ethhdr *)(skb->data + VLAN_HLEN); | |
760 | - | |
761 | 756 | udphdr = (struct udphdr *)(skb->data + *header_len); |
762 | 757 | *header_len += sizeof(*udphdr); |
763 | 758 |