gro: small napi_get_frags() optim
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>
This commit is contained in:
committed by
David S. Miller
parent
15c77d8b3b
commit
84b9cd633b
@@ -3981,8 +3981,7 @@ struct sk_buff *napi_get_frags(struct napi_struct *napi)
|
|||||||
|
|
||||||
if (!skb) {
|
if (!skb) {
|
||||||
skb = netdev_alloc_skb_ip_align(napi->dev, GRO_MAX_HEAD);
|
skb = netdev_alloc_skb_ip_align(napi->dev, GRO_MAX_HEAD);
|
||||||
if (skb)
|
napi->skb = skb;
|
||||||
napi->skb = skb;
|
|
||||||
}
|
}
|
||||||
return skb;
|
return skb;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user