commit | 84b9cd633bc35a028b313178829ee313525f6892 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Thu Dec 05 21:44:27 2013 -0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Dec 06 12:51:40 2013 -0500 |
tree | d087ea7d0344b394bfcafa035f563cb7f1cf8a68 | |
parent | 15c77d8b3be5a7f451035e6487127f58e5f872fa [diff] [blame] |
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>
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 @@ if (!skb) { skb = netdev_alloc_skb_ip_align(napi->dev, GRO_MAX_HEAD); - if (skb) - napi->skb = skb; + napi->skb = skb; } return skb; }