diff options
author | françois romieu <romieu@fr.zoreil.com> | 2014-03-29 12:26:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-29 17:49:47 -0400 |
commit | b13a8a99897a15b5f2f10722ac8d443df414f630 (patch) | |
tree | ccb99cf87bca8f4a478e58b21debd8e7119aa30d /drivers | |
parent | bb9689e631a6e5bb8544773168a05fcd49828d08 (diff) |
bna: remove open-coded skb_cow_head.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index a881e982a08..675550fe8ee 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; } /* |