mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
HV: Logical conjunction needs brackets
The bracket is required when the level of precedence of the operators is less than 13. Add the bracket to logical conjunctions. The commit applys the rule to the files under Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -267,7 +267,7 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
|
||||
uint64_t reg;
|
||||
int idx = VM_EXIT_CR_ACCESS_REG_IDX(vcpu->arch_vcpu.exit_qualification);
|
||||
|
||||
ASSERT(idx>=0 && idx<=15, "index out of range");
|
||||
ASSERT((idx>=0) && (idx<=15), "index out of range");
|
||||
reg = vcpu_get_gpreg(vcpu, idx);
|
||||
|
||||
switch ((VM_EXIT_CR_ACCESS_ACCESS_TYPE
|
||||
|
||||
Reference in New Issue
Block a user