Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84b9cd63 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

gro: small napi_get_frags() optim



Remove one useless conditional branch :
napi->skb is NULL, so nothing bad can happen.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 15c77d8b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3981,7 +3981,6 @@ 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;
	}
	return skb;