]> git.proxmox.com Git - qemu.git/commitdiff
kvm: Fix compiler warning (clang)
authorStefan Weil <sw@weilnetz.de>
Tue, 17 Sep 2013 20:39:55 +0000 (22:39 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 20 Sep 2013 16:11:32 +0000 (20:11 +0400)
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>
hw/i386/kvm/clock.c

index 92aabb83b5693243460608e9a1349352510b36b2..383938d1bc3058be9925e942b519b4aa231c232a 100644 (file)
@@ -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;