Fix warning about unused variable

Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
This commit is contained in:
Rusty Lynch 2018-04-10 14:13:22 -07:00 committed by lijinxia
parent 69f57b083e
commit b0ad24c949

View File

@ -667,9 +667,8 @@ int64_t hcall_setup_sbuf(struct vm *vm, uint64_t param)
int64_t hcall_get_cpu_pm_state(struct vm *vm, uint64_t cmd, uint64_t param)
{
int target_vm_id, target_vcpu_id;
int target_vm_id;
struct vm *target_vm;
struct vcpu *target_vcpu;
target_vm_id = (cmd & PMCMD_VMID_MASK) >> PMCMD_VMID_SHIFT;
target_vm = get_vm_from_vmid(target_vm_id);