diff options
| author | Yunsheng Lin <[email protected]> | 2020-09-19 02:24:47 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-20 21:17:20 +0000 |
| commit | 1f14bd99e6d393f55ca5f62dcf7bed0152ec4db6 (patch) | |
| tree | 08d23bd43e755327b3aa876c7509ebe58da507f5 /net/unix/af_unix.c | |
| parent | net: mvneta: avoid copying shared_info frags in mvneta_swbm_build_skb (diff) | |
| download | kernel-1f14bd99e6d393f55ca5f62dcf7bed0152ec4db6.tar.gz kernel-1f14bd99e6d393f55ca5f62dcf7bed0152ec4db6.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
