ktime: Get rid of ktime_equal()
No point in going through loops and hoops instead of just comparing the values. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
@@ -191,7 +191,7 @@ static inline int mip6_report_rl_allow(ktime_t stamp,
|
||||
int allow = 0;
|
||||
|
||||
spin_lock_bh(&mip6_report_rl.lock);
|
||||
if (!ktime_equal(mip6_report_rl.stamp, stamp) ||
|
||||
if (mip6_report_rl.stamp != stamp ||
|
||||
mip6_report_rl.iif != iif ||
|
||||
!ipv6_addr_equal(&mip6_report_rl.src, src) ||
|
||||
!ipv6_addr_equal(&mip6_report_rl.dst, dst)) {
|
||||
|
Reference in New Issue
Block a user