mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04: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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
1 parent
ff4970b130
commit
0f14a8351a
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user