aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/selftest/ratelimiter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/selftest/ratelimiter.h b/src/selftest/ratelimiter.h
index cf94407..7f13ef1 100644
--- a/src/selftest/ratelimiter.h
+++ b/src/selftest/ratelimiter.h
@@ -41,9 +41,8 @@ bool __init wg_ratelimiter_selftest(void)
struct sk_buff *skb4;
struct iphdr *hdr4;
-#if defined(CONFIG_KASAN) || defined(CONFIG_UBSAN)
- return true;
-#endif
+ if (IS_ENABLED(CONFIG_KASAN) || IS_ENABLED(CONFIG_UBSAN))
+ return true;
BUILD_BUG_ON(MSEC_PER_SEC % PACKETS_PER_SECOND != 0);