diff options
author | Eric Dumazet <edumazet@google.com> | 2013-12-05 21:44:27 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-06 12:51:40 -0500 |
commit | 84b9cd633bc35a028b313178829ee313525f6892 (patch) | |
tree | d087ea7d0344b394bfcafa035f563cb7f1cf8a68 | |
parent | 15c77d8b3be5a7f451035e6487127f58e5f872fa (diff) |
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>
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index ba3b7ea5ebb..c98052487e9 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; } |