diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-09-17 22:39:55 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-09-20 20:11:32 +0400 |
commit | e76d05c2b5028f09f6ac6bd2beee94103f388722 (patch) | |
tree | 6928076d0623ea098ee9c9b0b302aaf65e62f87e /hw | |
parent | 387e417666c28bd0cdc33c51036838dbae3bd3a4 (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/i386/kvm/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |