mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
hv: fix "Else alternative missing in if."
All if . . else if constructs shall be terminated with an else statement. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com
This commit is contained in:
committed by
ACRN System Integration
parent
7cff124b96
commit
b316bf8a39
@@ -1132,6 +1132,8 @@ vlapic_calc_dest(struct acrn_vm *vm, uint64_t *dmask, uint32_t dest, bool phys,
|
||||
lowprio_dest = vlapic;
|
||||
} else if (lowprio_dest->apic_page.ppr.v > vlapic->apic_page.ppr.v) {
|
||||
lowprio_dest = vlapic;
|
||||
} else {
|
||||
/* No other state currently, do nothing */
|
||||
}
|
||||
} else {
|
||||
bitmap_set_nolock(vcpu_id, dmask);
|
||||
@@ -1782,6 +1784,8 @@ vlapic_set_apicbase(struct acrn_vlapic *vlapic, uint64_t new)
|
||||
"NOT support to change APIC_BASE MSR from %#lx to %#lx",
|
||||
vlapic->msr_apicbase, new);
|
||||
ret = -1;
|
||||
} else {
|
||||
/* No other state currently, do nothing */
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user