aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-02-28 15:05:29 +0100
committerDavid S. Miller <davem@davemloft.net>2024-03-01 08:44:54 +0000
commitf29f9199c2d2b3c258f577f438885288016847ed (patch)
tree973ca75ac0ca2a761915d87e5861b55ca0bfa8a5
parentMerge branch 'ipv6-devconf-lockless' (diff)
downloadwireguard-linux-f29f9199c2d2b3c258f577f438885288016847ed.tar.xz
wireguard-linux-f29f9199c2d2b3c258f577f438885288016847ed.zip
Simplify net_dbg_ratelimited() dummy
There is no need to wrap calls to the no_printk() helper inside an always-false check, as no_printk() already does that internally. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/net.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index c9b4a63791a4..15df6d5f27a7 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -299,10 +299,7 @@ do { \
net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__)
#else
#define net_dbg_ratelimited(fmt, ...) \
- do { \
- if (0) \
- no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \
- } while (0)
+ no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
#endif
#define net_get_random_once(buf, nbytes) \