diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-02-28 15:05:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-03-01 08:44:54 +0000 |
commit | f29f9199c2d2b3c258f577f438885288016847ed (patch) | |
tree | 973ca75ac0ca2a761915d87e5861b55ca0bfa8a5 /include/linux | |
parent | 9f780efa6eaa3870bd2ad487ee97872fe25f3e1d (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/net.h | 5 |
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) \ |