hypervisor: Restore pm initialization

Adjustment for 'c059cdeaf' due to older compiler complaint about pm
not being initialized even though the j&7 == 0 does the trick.
This commit is contained in:
John Ferlan
2013-02-12 00:32:57 +08:00
committed by Osier Yang
parent 9be2018469
commit ba5193c8d8
+1 -1
View File
@@ -1773,7 +1773,7 @@ virXen_setvcpumap(int handle,
ret = -1; ret = -1;
} else { } else {
cpumap_t xen_cpumap; /* limited to 64 CPUs in old hypervisors */ cpumap_t xen_cpumap; /* limited to 64 CPUs in old hypervisors */
uint64_t *pm; uint64_t *pm = &xen_cpumap;
int j; int j;
if ((maplen > (int)sizeof(cpumap_t)) || (sizeof(cpumap_t) & 7)) if ((maplen > (int)sizeof(cpumap_t)) || (sizeof(cpumap_t) & 7))