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:
Yu Zhe authored and Jakub Kicinski committed 2022-07-29 20:12:49 -07:00
1 parent ff4970b130
commit 0f14a8351a
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}