Yunsheng Lin 1f14bd99e6 net: remove unnecessary NULL checking in napi_consume_skb()
When budget is non-zero, skb_unref() has already handled the
NULL checking.

When budget is zero, the dev_consume_skb_any() has handled NULL
checking in __dev_kfree_skb_irq(), or dev_kfree_skb() which also
ultimately call skb_unref().

So remove the unnecessary checking in napi_consume_skb().

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-20 14:17:20 -07:00
..
2020-09-18 14:12:43 -07:00
2020-06-23 20:27:09 -07:00
2020-09-18 18:18:30 -07:00
2020-09-18 14:12:43 -07:00
2020-08-27 07:55:59 -07:00
2020-09-18 14:12:43 -07:00
2020-07-13 17:20:40 -07:00