projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9689e
)
bna: remove open-coded skb_cow_head.
author
françois romieu
<romieu@fr.zoreil.com>
Sat, 29 Mar 2014 11:26:28 +0000
(12:26 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/brocade/bna/bnad.c
b/drivers/net/ethernet/brocade/bna/bnad.c
index a881e982a084d573f062a6d68e78d4f859ebb75a..675550fe8ee90dfe7f2c704787d7b900107f06d4 100644
(file)
--- 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;
}
/*