Skip to content

Commit a3f7607

Browse files
joshtripletttorvalds
authored andcommitted
include/asm-generic/bug.h: style fix: s/while(0)/while (0)/
Signed-off-by: Josh Triplett <[email protected]> Reported-by: Randy Dunlap <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b607e70 commit a3f7607

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/asm-generic/bug.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct bug_entry {
5252
#endif
5353

5454
#ifndef HAVE_ARCH_BUG_ON
55-
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0)
55+
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
5656
#endif
5757

5858
/*
@@ -138,11 +138,11 @@ extern void warn_slowpath_null(const char *file, const int line);
138138

139139
#else /* !CONFIG_BUG */
140140
#ifndef HAVE_ARCH_BUG
141-
#define BUG() do {} while(0)
141+
#define BUG() do {} while (0)
142142
#endif
143143

144144
#ifndef HAVE_ARCH_BUG_ON
145-
#define BUG_ON(condition) do { if (condition) ; } while(0)
145+
#define BUG_ON(condition) do { if (condition) ; } while (0)
146146
#endif
147147

148148
#ifndef HAVE_ARCH_WARN_ON

0 commit comments

Comments
 (0)