projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET]: Avoid allocating skb in skb_pad
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
net
/
3c527.c
diff --git
a/drivers/net/3c527.c
b/drivers/net/3c527.c
index 1b1cb0026072e71d200d6a7e8fd01dadf9582661..157eda57392536df2af842f1baf36c82bb0792e7 100644
(file)
--- a/
drivers/net/3c527.c
+++ b/
drivers/net/3c527.c
@@
-1031,8
+1031,7
@@
static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev)
return 1;
}
- skb = skb_padto(skb, ETH_ZLEN);
- if (skb == NULL) {
+ if (skb_padto(skb, ETH_ZLEN)) {
netif_wake_queue(dev);
return 0;
}