mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 16:53:58 -05:00
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>
This commit is contained in:
parent
ff4970b130
commit
0f14a8351a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue