mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
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:
@@ -38,12 +38,14 @@ static void parse_other_modules(struct vm *vm,
|
||||
dev_dbg(ACRN_DBG_BOOT, "cmd addr=0x%x, str=%s",
|
||||
mods[i].mm_string, start);
|
||||
|
||||
while (*start == ' ')
|
||||
while (*start == ' ') {
|
||||
start++;
|
||||
}
|
||||
|
||||
end = start;
|
||||
while (*end != ' ' && (*end) != 0)
|
||||
while (*end != ' ' && (*end) != 0) {
|
||||
end++;
|
||||
}
|
||||
|
||||
type_len = end - start;
|
||||
if (strncmp("FIRMWARE", start, type_len) == 0) {
|
||||
|
Reference in New Issue
Block a user