From: Eric Dumazet Date: Fri, 6 Dec 2013 05:44:27 +0000 (-0800) Subject: gro: small napi_get_frags() optim X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84b9cd633bc35a028b313178829ee313525f6892;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index ba3b7ea5ebb3..c98052487e98 100644 --- 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; }