From e76d05c2b5028f09f6ac6bd2beee94103f388722 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 17 Sep 2013 22:39:55 +0200 Subject: [PATCH] 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 Signed-off-by: Michael Tokarev --- hw/i386/kvm/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c index 92aabb83b5..383938d1bc 100644 --- a/hw/i386/kvm/clock.c +++ b/hw/i386/kvm/clock.c @@ -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;