summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-12-25 14:43:07 +0300
committerThomas Gleixner <tglx@linutronix.de>2016-12-25 19:21:23 +0300
commit1f3a8e49d8f28f498b8694464623ac20aebfe62a (patch)
treeda0b5101c3be3e18b55b0a11974f63a3195704f9 /net
parent8b0e195314fabd58a331c4f7b6db75a1565535d7 (diff)
downloadlinux-1f3a8e49d8f28f498b8694464623ac20aebfe62a.tar.xz
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/mip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c
index 60c79a08e14a..64f0f7be9e5e 100644
--- a/net/ipv6/mip6.c
+++ b/net/ipv6/mip6.c
@@ -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)) {