From 2251ea04a8eeef76f3bc4bbe58ea4132a2f67fad Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 2 Feb 2018 16:28:46 -0800 Subject: [PATCH] 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 --- include/misc/__assert.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/misc/__assert.h b/include/misc/__assert.h index 48e1d326cdb..7fda1de00b4 100644 --- a/include/misc/__assert.h +++ b/include/misc/__assert.h @@ -82,8 +82,9 @@ __FILE__, \ __LINE__); \ printk(fmt, ##__VA_ARGS__); \ - for (;;) \ - ; /* spin thread */ \ + for (;;) { \ + /* spin thread */ \ + } \ } \ } while ((0))