HV: cleanup coding style violation

- replace MACROs with inline functions
 - remove unused local viarbles
 - fix build errors

Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang
2018-07-05 01:30:18 +08:00
committed by lijinxia
parent b0deb1b5bd
commit cc7167026b
5 changed files with 33 additions and 41 deletions

View File

@@ -310,9 +310,9 @@ void setup_ioapic_irq(void)
for (ioapic_id = 0U;
ioapic_id < CONFIG_NR_IOAPICS; ioapic_id++) {
int pin;
int max_pins;
int version;
uint32_t pin;
uint32_t max_pins;
uint32_t version;
void *addr;
addr = map_ioapic(get_ioapic_base(ioapic_id));