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>
This commit is contained in:
parent
9f780efa6e
commit
f29f9199c2
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user