mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +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:
@@ -421,9 +421,10 @@ void suspend_ioapic(void)
|
||||
|
||||
addr = map_ioapic(get_ioapic_base(ioapic_id));
|
||||
nr_pins = ioapic_nr_pins(addr);
|
||||
for (ioapic_pin = 0U; ioapic_pin < nr_pins; ioapic_pin++)
|
||||
for (ioapic_pin = 0U; ioapic_pin < nr_pins; ioapic_pin++) {
|
||||
ioapic_get_rte_entry(addr, ioapic_pin,
|
||||
&saved_rte[ioapic_id][ioapic_pin]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -437,9 +438,10 @@ void resume_ioapic(void)
|
||||
|
||||
addr = map_ioapic(get_ioapic_base(ioapic_id));
|
||||
nr_pins = ioapic_nr_pins(addr);
|
||||
for (ioapic_pin = 0U; ioapic_pin < nr_pins; ioapic_pin++)
|
||||
for (ioapic_pin = 0U; ioapic_pin < nr_pins; ioapic_pin++) {
|
||||
ioapic_set_rte_entry(addr, ioapic_pin,
|
||||
&saved_rte[ioapic_id][ioapic_pin]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user