bna: remove open-coded skb_cow_head.
authorfrançois romieu <romieu@fr.zoreil.com>
Sat, 29 Mar 2014 11:26:28 +0000 (12:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Mar 2014 21:49:47 +0000 (17:49 -0400)
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad.c

index a881e982a084d573f062a6d68e78d4f859ebb75a..675550fe8ee90dfe7f2c704787d7b900107f06d4 100644 (file)
@@ -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;
        }
 
        /*