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:42:34 -07:00
committed by Jack Ren
parent df038fc0db
commit fd81655e60
9 changed files with 42 additions and 21 deletions

View File

@@ -118,8 +118,9 @@ biosacpi_search_rsdp(char *base, int length)
strnlen_s(ACPI_SIG_RSDP, 8)) == 0) {
cp = (uint8_t *)rsdp;
sum = NULL;
for (idx = 0; idx < RSDP_CHECKSUM_LENGTH; idx++)
for (idx = 0; idx < RSDP_CHECKSUM_LENGTH; idx++) {
sum += *(cp + idx);
}
if (sum != NULL)
continue;