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:
Zhao Yakui 2018-05-14 13:51:54 +08:00 committed by Jack Ren
parent 3a9bf54d66
commit 263fafe819

View File

@ -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;