]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42b6eb87308af392a5d81cc7a411b68e4a7ee3da
tree587a616740c7000c6a87b1a95ca0b7671b26e84c
parentc35c03f93776f3d71b1f27b9ada931c048f71144
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