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:
yuhong.tao@intel.com 2018-12-19 23:46:21 +08:00 committed by wenlingz
parent 3bfa695565
commit 88a7d8b2cc

View File

@ -253,7 +253,7 @@ static int32_t vcpu_inject_hi_exception(struct acrn_vcpu *vcpu)
uint32_t vector = vcpu->arch.exception_info.exception;
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);
ret = 1;
} else {