projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
387e417
)
kvm: Fix compiler warning (clang)
author
Stefan Weil
<sw@weilnetz.de>
Tue, 17 Sep 2013 20:39:55 +0000
(22:39 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/hw/i386/kvm/clock.c
b/hw/i386/kvm/clock.c
index 92aabb83b5693243460608e9a1349352510b36b2..383938d1bc3058be9925e942b519b4aa231c232a 100644
(file)
--- 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;