Skip to content

Commit

Permalink
misc: Use braces in infinite for loop
Browse files Browse the repository at this point in the history
Be consistent with the style of always having braces even if a compound
statement isn't required.  Avoids some warnings from static analysis
tools.

Signed-off-by: Leandro Pereira <[email protected]>
  • Loading branch information
lpereira authored and Anas Nashif committed Feb 3, 2018
1 parent 90f175b commit 2251ea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/misc/__assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@
__FILE__, \
__LINE__); \
printk(fmt, ##__VA_ARGS__); \
for (;;) \
; /* spin thread */ \
for (;;) { \
/* spin thread */ \
} \
} \
} while ((0))

Expand Down

0 comments on commit 2251ea0

Please sign in to comment.