diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-02-17 18:31:14 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-02-18 12:15:53 +0200 |
commit | 5207a5e0c33ce836341ff760e64ea4880bf1bc29 (patch) | |
tree | f790fa2ac5ef5e932ef9405fdd35e4a592a9da02 /cpus.c | |
parent | e479c207d7616e3b6ea42d14d1c6a7fef1f32fc4 (diff) | |
download | qemu-5207a5e0c33ce836341ff760e64ea4880bf1bc29.zip qemu-5207a5e0c33ce836341ff760e64ea4880bf1bc29.tar.gz qemu-5207a5e0c33ce836341ff760e64ea4880bf1bc29.tar.bz2 |
Remove useless casts from cpu iterators
CPUState::next_cpu is already CPUState *.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -853,7 +853,7 @@ static int all_vcpus_paused(void) if (!penv->stopped) { return 0; } - penv = (CPUState *)penv->next_cpu; + penv = penv->next_cpu; } return 1; @@ -867,7 +867,7 @@ void pause_all_vcpus(void) while (penv) { penv->stop = 1; qemu_cpu_kick(penv); - penv = (CPUState *)penv->next_cpu; + penv = penv->next_cpu; } while (!all_vcpus_paused()) { @@ -875,7 +875,7 @@ void pause_all_vcpus(void) penv = first_cpu; while (penv) { qemu_cpu_kick(penv); - penv = (CPUState *)penv->next_cpu; + penv = penv->next_cpu; } } } @@ -889,7 +889,7 @@ void resume_all_vcpus(void) penv->stop = 0; penv->stopped = 0; qemu_cpu_kick(penv); - penv = (CPUState *)penv->next_cpu; + penv = penv->next_cpu; } } |