From: françois romieu Date: Sat, 29 Mar 2014 11:26:30 +0000 (+0100) Subject: wimax/i2400m: remove open-coded skb_cow_head. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b06626b899f9ed4fcd686c5185f7313d7119ef98;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git wimax/i2400m: remove open-coded skb_cow_head. Signed-off-by: Francois Romieu Cc: Inaky Perez-Gonzalez Signed-off-by: David S. Miller --- diff --git a/drivers/net/wimax/i2400m/netdev.c b/drivers/net/wimax/i2400m/netdev.c index 48896138418f..a9970f1af976 100644 --- a/drivers/net/wimax/i2400m/netdev.c +++ b/drivers/net/wimax/i2400m/netdev.c @@ -374,8 +374,7 @@ netdev_tx_t i2400m_hard_start_xmit(struct sk_buff *skb, d_fnstart(3, dev, "(skb %p net_dev %p)\n", skb, net_dev); - if (skb_header_cloned(skb) && - pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) + if (skb_cow_head(skb, 0)) goto drop; if (i2400m->state == I2400M_SS_IDLE)