Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93b138dd authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Petr Mladek
Browse files

printk: simplify no_printk()

Commit 069f0cd0 ("printk: Make the printk*once() variants return
a value") surrounded the macro implementation with ({ ... }).

Now, the inner do { ... } while (0); is redundant.

Link: http://lkml.kernel.org/r/1505660504-11059-1-git-send-email-yamada.masahiro@socionext.com


Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent cef5d0f9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -131,10 +131,8 @@ struct va_format {
 */
#define no_printk(fmt, ...)				\
({							\
	do {						\
	if (0)						\
		printk(fmt, ##__VA_ARGS__);		\
	} while (0);					\
	0;						\
})