Skip to content

Commit

Permalink
net: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
françois romieu authored and David S. Miller committed Jul 17, 2014
1 parent ee40d4b commit a40e0a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2421,8 +2421,8 @@ struct sk_buff *__skb_gso_segment(struct sk_buff *skb,

skb_warn_bad_offload(skb);

if (skb_header_cloned(skb) &&
(err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC)))
err = skb_cow_head(skb, 0);
if (err < 0)
return ERR_PTR(err);
}

Expand Down

0 comments on commit a40e0a6

Please sign in to comment.