mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv: fixes related to unused API and uninitialized variable
This patch does: - remove the unused API declaration - fix use of uninitialized variable in instr_emul.c Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -1335,7 +1335,7 @@ static int emulate_or(struct acrn_vcpu *vcpu, const struct instr_emul_vie *vie)
|
||||
|
||||
static int emulate_cmp(struct acrn_vcpu *vcpu, const struct instr_emul_vie *vie)
|
||||
{
|
||||
int error;
|
||||
int error = 0;
|
||||
uint8_t size;
|
||||
uint64_t regop, memop, op1, op2, rflags2;
|
||||
enum cpu_reg_name reg;
|
||||
|
Reference in New Issue
Block a user