mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 07:21:37 +00:00
hv: virq: refine vcpu_inject_hi_exception()
The MISRA-C Standards suggests use brackets to clarify the precedence order of logical conjunctions. Tracked-On: #861 Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
parent
3bfa695565
commit
88a7d8b2cc
@ -253,7 +253,7 @@ static int32_t vcpu_inject_hi_exception(struct acrn_vcpu *vcpu)
|
|||||||
uint32_t vector = vcpu->arch.exception_info.exception;
|
uint32_t vector = vcpu->arch.exception_info.exception;
|
||||||
int32_t ret;
|
int32_t ret;
|
||||||
|
|
||||||
if (vector == IDT_MC || vector == IDT_BP || vector == IDT_DB) {
|
if ((vector == IDT_MC) || (vector == IDT_BP) || (vector == IDT_DB)) {
|
||||||
vcpu_inject_exception(vcpu, vector);
|
vcpu_inject_exception(vcpu, vector);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user