]> 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)
commit260fc0c5c705a67547842028192dedaa7168c0a3
tree587a616740c7000c6a87b1a95ca0b7671b26e84c
parent3583f5eb75425aed9ea5f1a561a8d09120677027
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