mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
hv: fix Violations touched ACRN Coding Guidelines
fix violations touched below: 1.Cast operation on a constant value 2.signed/unsigned implicity conversion 3.return value unused. V1->V2: 1.bitmap api will return boolean type, not need to check "!= 0", deleted. 2.The behaves ~(uint32_t)X and (uint32_t)~X are not defined in ACRN hypervisor Coding Guidelines, removed the change of it. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
f1b71d983a
commit
f147c388a5
@@ -2138,7 +2138,7 @@ int32_t vlapic_x2apic_write(struct acrn_vcpu *vcpu, uint32_t msr, uint64_t val)
|
||||
return error;
|
||||
}
|
||||
|
||||
int32_t vlapic_create(struct acrn_vcpu *vcpu)
|
||||
void vlapic_create(struct acrn_vcpu *vcpu)
|
||||
{
|
||||
vcpu->arch.vlapic.vm = vcpu->vm;
|
||||
vcpu->arch.vlapic.vcpu = vcpu;
|
||||
@@ -2159,7 +2159,6 @@ int32_t vlapic_create(struct acrn_vcpu *vcpu)
|
||||
}
|
||||
|
||||
vlapic_init(vcpu_vlapic(vcpu));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user