mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user