]> git.baikalelectronics.ru Git - kernel.git/commit
dn_route: replace "jiffies-now>0" with "jiffies!=now"
authorYu Zhe <yuzhe@nfschina.com>
Fri, 29 Jul 2022 06:17:12 +0000 (14:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jul 2022 03:12:49 +0000 (20:12 -0700)
commita9a4d2daa6406d04383c41dca3f645d6e655708c
tree0760912fb0cd8aea34be75938200fb85a6dff0eb
parentecc3434322c2a0edaab64b3702ff90f44e3bb10e
dn_route: replace "jiffies-now>0" with "jiffies!=now"

Use "jiffies != now" to replace "jiffies - now > 0" to make
code more readable. We want to put a limit on how long the
loop can run for before rescheduling.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20220729061712.22666-1-yuzhe@nfschina.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/decnet/dn_route.c