]> git.baikalelectronics.ru Git - kernel.git/commit
net: sch: simplify condtion for selecting mini_Qdisc_pair buffer
authorSeth Forshee <sforshee@digitalocean.com>
Tue, 26 Oct 2021 18:37:21 +0000 (13:37 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Oct 2021 00:09:26 +0000 (17:09 -0700)
commitbadae65ea75fe9fafc7bdc6bd19cb6c430bae070
tree3ee2827d5bdfc354de8fc7890d576c822c2102cf
parent0fa8b5f442bdddcbca6dafe175b8ed89bcdf5a4e
net: sch: simplify condtion for selecting mini_Qdisc_pair buffer

The only valid values for a miniq pointer are NULL or a pointer to
miniq1 or miniq2, so testing for miniq_old != &miniq1 is functionally
equivalent to testing that it is NULL or equal to &miniq2.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Seth Forshee <sforshee@digitalocean.com>
Link: https://lore.kernel.org/r/20211026183721.137930-1-seth@forshee.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_generic.c