Skip to content

Commit

Permalink
wimax/i2400m: remove open-coded skb_cow_head.
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
françois romieu authored and David S. Miller committed Mar 29, 2014
1 parent 105dcb5 commit b06626b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wimax/i2400m/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b06626b

Please sign in to comment.