diff options
author | françois romieu <romieu@fr.zoreil.com> | 2014-03-29 07:26:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-29 17:49:47 -0400 |
commit | d8e4435e1644308b8f024630bdf5ecd111bafe20 (patch) | |
tree | 52837e8d345132e3b5d257d67eb54b31a17e9cda /drivers/net/ethernet/atheros | |
parent | 0f5c113c5adb56c1352c05155dd4a711b68a839b (diff) |
atl1e: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Chris Snook <chris.snook@gmail.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r-- | drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c index 422aab27ea1b..4345332533ad 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e_main.c +++ b/drivers/net/ethernet/atheros/atl1e/atl1e_main.c | |||
@@ -1641,17 +1641,17 @@ static u16 atl1e_cal_tdp_req(const struct sk_buff *skb) | |||
1641 | static int atl1e_tso_csum(struct atl1e_adapter *adapter, | 1641 | static int atl1e_tso_csum(struct atl1e_adapter *adapter, |
1642 | struct sk_buff *skb, struct atl1e_tpd_desc *tpd) | 1642 | struct sk_buff *skb, struct atl1e_tpd_desc *tpd) |
1643 | { | 1643 | { |
1644 | unsigned short offload_type; | ||
1644 | u8 hdr_len; | 1645 | u8 hdr_len; |
1645 | u32 real_len; | 1646 | u32 real_len; |
1646 | unsigned short offload_type; | ||
1647 | int err; | ||
1648 | 1647 | ||
1649 | if (skb_is_gso(skb)) { | 1648 | if (skb_is_gso(skb)) { |
1650 | if (skb_header_cloned(skb)) { | 1649 | int err; |
1651 | err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC); | 1650 | |
1652 | if (unlikely(err)) | 1651 | err = skb_cow_head(skb, 0); |
1653 | return -1; | 1652 | if (err < 0) |
1654 | } | 1653 | return err; |
1654 | |||
1655 | offload_type = skb_shinfo(skb)->gso_type; | 1655 | offload_type = skb_shinfo(skb)->gso_type; |
1656 | 1656 | ||
1657 | if (offload_type & SKB_GSO_TCPV4) { | 1657 | if (offload_type & SKB_GSO_TCPV4) { |