From 5d1be67e83dbbc4e2d64dbf21fb93a5bca4325ca Mon Sep 17 00:00:00 2001 From: frei tycho Date: Fri, 7 Jun 2024 15:50:33 +0000 Subject: [PATCH] shell: change controlling expressions in while to Boolean Use `do { ... } while (false)` instead of `do { ... } while (0)`. Signed-off-by: frei tycho --- subsys/shell/shell_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/shell/shell_ops.h b/subsys/shell/shell_ops.h index 293396cc289..b72d6456cb6 100644 --- a/subsys/shell/shell_ops.h +++ b/subsys/shell/shell_ops.h @@ -48,7 +48,7 @@ static inline void z_shell_raw_fprintf(const struct shell_fprintf *const ctx, ~_internal_.value); \ } \ _ret_ = (_internal_.flags._flag_ != 0); \ - } while (0) + } while (false) static inline bool z_flag_insert_mode_get(const struct shell *sh) {