diff options
author | françois romieu <romieu@fr.zoreil.com> | 2014-03-29 12:26:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-29 22:49:47 +0100 |
commit | 0f5c113c5adb56c1352c05155dd4a711b68a839b (patch) | |
tree | ca5fcedcf4a90c596da924667e8c24ef06e74ab2 | |
parent | atl1: remove open-coded skb_cow_head. (diff) | |
download | linux-0f5c113c5adb56c1352c05155dd4a711b68a839b.tar.xz linux-0f5c113c5adb56c1352c05155dd4a711b68a839b.zip |
atl1c: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <chris.snook@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c index 31f262302128..e11bf18fbbd1 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c +++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c @@ -1973,17 +1973,17 @@ static int atl1c_tso_csum(struct atl1c_adapter *adapter, enum atl1c_trans_queue type) { struct pci_dev *pdev = adapter->pdev; + unsigned short offload_type; u8 hdr_len; u32 real_len; - unsigned short offload_type; - int err; if (skb_is_gso(skb)) { - if (skb_header_cloned(skb)) { - err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC); - if (unlikely(err)) - return -1; - } + int err; + + err = skb_cow_head(skb, 0); + if (err < 0) + return err; + offload_type = skb_shinfo(skb)->gso_type; if (offload_type & SKB_GSO_TCPV4) { |