Commit a3f7607d authored by Josh Triplett's avatar Josh Triplett Committed by Linus Torvalds

include/asm-generic/bug.h: style fix: s/while(0)/while (0)/

Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b607e70e
...@@ -52,7 +52,7 @@ struct bug_entry { ...@@ -52,7 +52,7 @@ struct bug_entry {
#endif #endif
#ifndef HAVE_ARCH_BUG_ON #ifndef HAVE_ARCH_BUG_ON
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0) #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
#endif #endif
/* /*
...@@ -138,11 +138,11 @@ extern void warn_slowpath_null(const char *file, const int line); ...@@ -138,11 +138,11 @@ extern void warn_slowpath_null(const char *file, const int line);
#else /* !CONFIG_BUG */ #else /* !CONFIG_BUG */
#ifndef HAVE_ARCH_BUG #ifndef HAVE_ARCH_BUG
#define BUG() do {} while(0) #define BUG() do {} while (0)
#endif #endif
#ifndef HAVE_ARCH_BUG_ON #ifndef HAVE_ARCH_BUG_ON
#define BUG_ON(condition) do { if (condition) ; } while(0) #define BUG_ON(condition) do { if (condition) ; } while (0)
#endif #endif
#ifndef HAVE_ARCH_WARN_ON #ifndef HAVE_ARCH_WARN_ON
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment