Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
David S. Miller
f29f9199 9f780efa

+1 -4
+1 -4
include/linux/net.h
··· 299 299 net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__) 300 300 #else 301 301 #define net_dbg_ratelimited(fmt, ...) \ 302 - do { \ 303 - if (0) \ 304 - no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \ 305 - } while (0) 302 + no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) 306 303 #endif 307 304 308 305 #define net_get_random_once(buf, nbytes) \