[PATCH 3.16 101/294] net: remove open-coded skb_cow_head.

From: Ben Hutchings
Date: Mon Nov 06 2017 - 19:22:42 EST


3.16.50-rc1 review patch. If anyone has any objections, please let me know.

------------------

From: franÃois romieu <romieu@xxxxxxxxxxxxx>

commit a40e0a664bce465a3b8ad1d792153cef8ded9f7d upstream.

Signed-off-by: Francois Romieu <romieu@xxxxxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
---
net/core/dev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2437,8 +2437,8 @@ struct sk_buff *__skb_gso_segment(struct

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);
}