Skip to content

Commit 2251ea0

Browse files
lpereiraAnas Nashif
authored andcommitted
misc: Use braces in infinite for loop
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]>
1 parent 90f175b commit 2251ea0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/misc/__assert.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@
8282
__FILE__, \
8383
__LINE__); \
8484
printk(fmt, ##__VA_ARGS__); \
85-
for (;;) \
86-
; /* spin thread */ \
85+
for (;;) { \
86+
/* spin thread */ \
87+
} \
8788
} \
8889
} while ((0))
8990

0 commit comments

Comments
 (0)