misc: Add 'U' to unsigned variable assignments
Add 'U' to a value when assigning it to an unsigned variable. MISRA-C rule 7.2 Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
186fb94bcb
commit
a76e37a707
|
@ -239,7 +239,7 @@ struct buf_out_context {
|
|||
static void buf_flush(struct buf_out_context *ctx)
|
||||
{
|
||||
k_str_out(ctx->buf, ctx->buf_count);
|
||||
ctx->buf_count = 0;
|
||||
ctx->buf_count = 0U;
|
||||
}
|
||||
|
||||
static int buf_char_out(int c, void *ctx_p)
|
||||
|
|
Loading…
Reference in a new issue