mirror of https://github.com/xemu-project/xemu.git
kvm: Fix compiler warning (clang)
Report from clang analyzer: clock.c:42:15: warning: Value stored to 'cpu' during its initialization is never read Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
387e417666
commit
e76d05c2b5
|
@ -39,7 +39,7 @@ static void kvmclock_vm_state_change(void *opaque, int running,
|
|||
RunState state)
|
||||
{
|
||||
KVMClockState *s = opaque;
|
||||
CPUState *cpu = first_cpu;
|
||||
CPUState *cpu;
|
||||
int cap_clock_ctrl = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL);
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Reference in New Issue