diff options
author | françois romieu <romieu@fr.zoreil.com> | 2014-03-29 07:26:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-29 17:49:47 -0400 |
commit | bb9689e631a6e5bb8544773168a05fcd49828d08 (patch) | |
tree | be8170ee03409c8e61f96a8a4395c8719074efb2 | |
parent | ba4e6d19202a6aaa7207fde08310961df5197981 (diff) |
qlge: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Cc: Shahed Shaikh <shahed.shaikh@qlogic.com>
Cc: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qlge/qlge_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index adf87d26e68f..5b63405f9d3c 100644 --- a/drivers/net/ethernet/qlogic/qlge/qlge_main.c +++ b/drivers/net/ethernet/qlogic/qlge/qlge_main.c | |||
@@ -2556,11 +2556,10 @@ static int ql_tso(struct sk_buff *skb, struct ob_mac_tso_iocb_req *mac_iocb_ptr) | |||
2556 | 2556 | ||
2557 | if (skb_is_gso(skb)) { | 2557 | if (skb_is_gso(skb)) { |
2558 | int err; | 2558 | int err; |
2559 | if (skb_header_cloned(skb)) { | 2559 | |
2560 | err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC); | 2560 | err = skb_cow_head(skb, 0); |
2561 | if (err) | 2561 | if (err < 0) |
2562 | return err; | 2562 | return err; |
2563 | } | ||
2564 | 2563 | ||
2565 | mac_iocb_ptr->opcode = OPCODE_OB_MAC_TSO_IOCB; | 2564 | mac_iocb_ptr->opcode = OPCODE_OB_MAC_TSO_IOCB; |
2566 | mac_iocb_ptr->flags3 |= OB_MAC_TSO_IOCB_IC; | 2565 | mac_iocb_ptr->flags3 |= OB_MAC_TSO_IOCB_IC; |