mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
HV: Initialize one variable to fix the compiling warning
If the optimization option is enabled, it is possible that one variable is not initialized before using in the get_vioapic_info. (In fact the warning is bogus) This is only to reduce the compiling warning. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
parent
3a9bf54d66
commit
263fafe819
@ -636,6 +636,7 @@ int get_vioapic_info(char *str, int str_max, int vmid)
|
||||
size -= len;
|
||||
str += len;
|
||||
|
||||
rte = 0;
|
||||
for (pin = 0 ; pin < vioapic_pincount(vm); pin++) {
|
||||
vioapic_get_rte(vm, pin, (void *)&rte);
|
||||
low = rte;
|
||||
|
Loading…
Reference in New Issue
Block a user