From: françois romieu Date: Sat, 29 Mar 2014 11:26:29 +0000 (+0100) Subject: tg3: remove open-coded skb_cow_head. X-Git-Tag: firefly_0821_release~176^2~4167^2~38^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=105dcb5979e70fee7a4dbd6505ec89d406258f1a;p=firefly-linux-kernel-4.4.55.git tg3: remove open-coded skb_cow_head. Signed-off-by: Francois Romieu Cc: Nithin Nayak Sujir Cc: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 1ac461a7d949..22586e92da0e 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -7918,8 +7918,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) struct iphdr *iph; u32 tcp_opt_len, hdr_len; - if (skb_header_cloned(skb) && - pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) + if (skb_cow_head(skb, 0)) goto drop; iph = ip_hdr(skb);