diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-01 04:38:40 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-02 14:37:53 +0200 |
commit | fd9e1bc874536e9b2bb4c3640aababa018b99648 (patch) | |
tree | cc41089a84335ac5b26ed96e754c63e81f48a2bd | |
parent | global: change BUG_ON to WARN_ON (diff) | |
download | wireguard-monolithic-historical-fd9e1bc874536e9b2bb4c3640aababa018b99648.tar.xz wireguard-monolithic-historical-fd9e1bc874536e9b2bb4c3640aababa018b99648.zip |
ratelimiter: prefer IS_ENABLED
-rw-r--r-- | src/selftest/ratelimiter.h | 5 |
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); |