HV: add the missing brackets to loop body

MISRA-C requires the use of brackets, even when there is only one
statement in the loop body.

Signed-off-by: Ying Liu <ying2.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Ying Liu
2018-07-10 19:59:31 -07:00
committed by Jack Ren
parent fd81655e60
commit 8c43ad54bf
10 changed files with 28 additions and 15 deletions

View File

@@ -469,8 +469,9 @@ int do_print(const char *fmt, struct print_param *param,
/* mark the current position and search the next '%' */
start = fmt;
while (((*fmt) != 0) && (*fmt != '%'))
while (((*fmt) != 0) && (*fmt != '%')) {
fmt++;
}
/*
* pass all characters until the next '%' to the emit function.