From: Eric Dumazet Date: Fri, 6 Dec 2013 05:44:27 +0000 (-0800) Subject: gro: small napi_get_frags() optim X-Git-Tag: accepted/tizen/common/20141203.182822~719^2~606 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84b9cd633bc35a028b313178829ee313525f6892;p=platform%2Fkernel%2Flinux-arm64.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 ba3b7ea..c980524 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; }