projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15c77d8
)
gro: small napi_get_frags() optim
author
Eric Dumazet
<edumazet@google.com>
Fri, 6 Dec 2013 05:44:27 +0000
(21:44 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 6 Dec 2013 17:51:40 +0000
(12:51 -0500)
Remove one useless conditional branch :
napi->skb is NULL, so nothing bad can happen.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index ba3b7ea5ebb3139cca38e82ac6f5f5e346f4a4e0..c98052487e986df6657e32da066630e95d3557bb 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-3981,8
+3981,7
@@
struct sk_buff *napi_get_frags(struct napi_struct *napi)
if (!skb) {
skb = netdev_alloc_skb_ip_align(napi->dev, GRO_MAX_HEAD);
- if (skb)
- napi->skb = skb;
+ napi->skb = skb;
}
return skb;
}