Skip to content

Commit f29f919

Browse files
geertudavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9f780ef commit f29f919

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

include/linux/net.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,7 @@ do { \
299299
net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__)
300300
#else
301301
#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__)
306303
#endif
307304

308305
#define net_get_random_once(buf, nbytes) \

0 commit comments

Comments
 (0)