From: Yu Zhe Date: Fri, 29 Jul 2022 06:17:12 +0000 (+0800) Subject: dn_route: replace "jiffies-now>0" with "jiffies!=now" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0f14a8351abd7d734ae617da05faa0008cd35927;p=linux.git 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 Link: https://lore.kernel.org/r/20220729061712.22666-1-yuzhe@nfschina.com Signed-off-by: Jakub Kicinski --- diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 552a53f1d5d02..ac2ee16891112 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c @@ -201,7 +201,7 @@ static void dn_dst_check_expire(struct timer_list *unused) } spin_unlock(&dn_rt_hash_table[i].lock); - if ((jiffies - now) > 0) + if (jiffies != now) break; }