Skip to content

Commit

Permalink
include/asm-generic/bug.h: style fix: s/while(0)/while (0)/
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Josh Triplett authored and Linus Torvalds committed Apr 7, 2014
1 parent b607e70 commit a3f7607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct bug_entry {
#endif

#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

/*
Expand Down Expand Up @@ -138,11 +138,11 @@ extern void warn_slowpath_null(const char *file, const int line);

#else /* !CONFIG_BUG */
#ifndef HAVE_ARCH_BUG
#define BUG() do {} while(0)
#define BUG() do {} while (0)
#endif

#ifndef HAVE_ARCH_BUG_ON
#define BUG_ON(condition) do { if (condition) ; } while(0)
#define BUG_ON(condition) do { if (condition) ; } while (0)
#endif

#ifndef HAVE_ARCH_WARN_ON
Expand Down

0 comments on commit a3f7607

Please sign in to comment.