diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-07-29 14:17:12 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-29 20:12:49 -0700 |
commit | 0f14a8351abd7d734ae617da05faa0008cd35927 (patch) | |
tree | 0760912fb0cd8aea34be75938200fb85a6dff0eb /net | |
parent | ff4970b130e74af4f2fe5bc6a7a963bc977cae1a (diff) |
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>
Diffstat (limited to 'net')
-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; } |