[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <925e6f02583e265bad78e85cad80766981001ff1.1396090802.git.romieu@fr.zoreil.com>
Date: Sat, 29 Mar 2014 12:26:27 +0100
From: Francois Romieu <romieu@...zoreil.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org,
Jitendra Kalsaria <jitendra.kalsaria@...gic.com>,
Shahed Shaikh <shahed.shaikh@...gic.com>,
Ron Mercer <ron.mercer@...gic.com>
Subject: [PATCH net-next 14/17] qlge: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@...zoreil.com>
Cc: Jitendra Kalsaria <jitendra.kalsaria@...gic.com>
Cc: Shahed Shaikh <shahed.shaikh@...gic.com>
Cc: Ron Mercer <ron.mercer@...gic.com>
---
drivers/net/ethernet/qlogic/qlge/qlge_main.c | 9 ++++-----
1 file 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 adf87d2..5b63405 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)
if (skb_is_gso(skb)) {
int err;
- if (skb_header_cloned(skb)) {
- err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC);
- if (err)
- return err;
- }
+
+ err = skb_cow_head(skb, 0);
+ if (err < 0)
+ return err;
mac_iocb_ptr->opcode = OPCODE_OB_MAC_TSO_IOCB;
mac_iocb_ptr->flags3 |= OB_MAC_TSO_IOCB_IC;
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists