From: françois romieu Date: Sat, 29 Mar 2014 11:26:27 +0000 (+0100) Subject: qlge: remove open-coded skb_cow_head. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bb9689e631a6e5bb8544773168a05fcd49828d08;p=openwrt%2Fstaging%2Fblogic.git qlge: remove open-coded skb_cow_head. Signed-off-by: Francois Romieu Cc: Jitendra Kalsaria Cc: Shahed Shaikh Cc: Ron Mercer Signed-off-by: David S. Miller --- 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) 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;