Commit 105dcb59 authored by françois romieu's avatar françois romieu Committed by David S. Miller

tg3: remove open-coded skb_cow_head.

Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Cc: Nithin Nayak Sujir <nsujir@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b13a8a99
...@@ -7918,8 +7918,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -7918,8 +7918,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct iphdr *iph; struct iphdr *iph;
u32 tcp_opt_len, hdr_len; u32 tcp_opt_len, hdr_len;
if (skb_header_cloned(skb) && if (skb_cow_head(skb, 0))
pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
goto drop; goto drop;
iph = ip_hdr(skb); iph = ip_hdr(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment