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:
Shiqing Gao
2018-12-04 09:18:43 +08:00
committed by wenlingz
parent f0d3f1c984
commit 7cc8566d37
5 changed files with 1 additions and 13 deletions

View File

@@ -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;