net: don't check skb_count twice
authorSieng Piaw Liew <liew.s.piaw@gmail.com>
Wed, 15 Jun 2022 03:24:26 +0000 (11:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2022 11:51:31 +0000 (12:51 +0100)
commit49ae83fc4fd027a4b4cf56bd2c94c7814ec4baff
tree587a616740c7000c6a87b1a95ca0b7671b26e84c
parent2aa4abed37927b9bc5db60dd5d440a7a47435a92
net: don't check skb_count twice

NAPI cache skb_count is being checked twice without condition. Change to
checking the second time only if the first check is run.

Signed-off-by: Sieng Piaw Liew <liew.s.piaw@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c