From: françois romieu Date: Sat, 29 Mar 2014 11:26:28 +0000 (+0100) Subject: bna: remove open-coded skb_cow_head. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b13a8a99897a15b5f2f10722ac8d443df414f630;p=openwrt%2Fstaging%2Fblogic.git bna: remove open-coded skb_cow_head. Signed-off-by: Francois Romieu Cc: Rasesh Mody Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index a881e982a084..675550fe8ee9 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -2496,12 +2496,10 @@ bnad_tso_prepare(struct bnad *bnad, struct sk_buff *skb) { int err; - if (skb_header_cloned(skb)) { - err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC); - if (err) { - BNAD_UPDATE_CTR(bnad, tso_err); - return err; - } + err = skb_cow_head(skb, 0); + if (err < 0) { + BNAD_UPDATE_CTR(bnad, tso_err); + return err; } /*