diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-07-29 09:17:12 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-30 06:12:49 +0300 |
commit | 0f14a8351abd7d734ae617da05faa0008cd35927 (patch) | |
tree | 0760912fb0cd8aea34be75938200fb85a6dff0eb | |
parent | ff4970b130e74af4f2fe5bc6a7a963bc977cae1a (diff) | |
download | linux-0f14a8351abd7d734ae617da05faa0008cd35927.tar.xz |
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>
-rw-r--r-- | net/decnet/dn_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 552a53f1d5d0..ac2ee1689111 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; } |