shell: change controlling expressions in while to Boolean

Use `do { ... } while (false)` instead of `do { ... } while (0)`.

Signed-off-by: frei tycho <tfrei@baumer.com>
This commit is contained in:
frei tycho 2024-06-07 15:50:33 +00:00 committed by Johan Hedberg
commit 5d1be67e83

View file

@ -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)
{