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:
Patrik Flykt 2018-11-29 11:15:18 -08:00 committed by Anas Nashif
parent 186fb94bcb
commit a76e37a707

View file

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