ixgb: remove open-coded skb_cow_head

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

authored by Francois Romieu and committed by Jeff Kirsher a173f045 6b8f07b4

+4 -6
+4 -6
drivers/net/ethernet/intel/ixgb/ixgb_main.c
··· 1220 1220 unsigned int i; 1221 1221 u8 ipcss, ipcso, tucss, tucso, hdr_len; 1222 1222 u16 ipcse, tucse, mss; 1223 - int err; 1224 1223 1225 1224 if (likely(skb_is_gso(skb))) { 1226 1225 struct ixgb_buffer *buffer_info; 1227 1226 struct iphdr *iph; 1227 + int err; 1228 1228 1229 - if (skb_header_cloned(skb)) { 1230 - err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC); 1231 - if (err) 1232 - return err; 1233 - } 1229 + err = skb_cow_head(skb, 0); 1230 + if (err < 0) 1231 + return err; 1234 1232 1235 1233 hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); 1236 1234 mss = skb_shinfo(skb)->gso_size;