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:
parent
a427f42772
commit
5d1be67e83
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue