mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +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
@@ -66,6 +66,8 @@ bool check_cpu_security_cap(void)
|
||||
} else if ((!cpu_has_cap(X86_FEATURE_IBRS_IBPB)) &&
|
||||
(!cpu_has_cap(X86_FEATURE_STIBP))) {
|
||||
ret = false;
|
||||
} else {
|
||||
/* No other state currently, do nothing */
|
||||
}
|
||||
} else {
|
||||
ret = false;
|
||||
|
||||
Reference in New Issue
Block a user