aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel.a@redhat.com>2014-04-09 20:34:53 +0300
committerAndreas Färber <afaerber@suse.de>2014-05-05 19:08:49 +0200
commit958db90cd54823c33345000c995453a8c9b7a005 (patch)
tree40b5b719074352d57d836534697f0eab7739ff86 /qmp.c
parentf1e298794daea46e7f52995887c865ac6ada10b9 (diff)
downloadqemu-958db90cd54823c33345000c995453a8c9b7a005.zip
qemu-958db90cd54823c33345000c995453a8c9b7a005.tar.gz
qemu-958db90cd54823c33345000c995453a8c9b7a005.tar.bz2
machine: Remove QEMUMachine indirection from MachineClass
No need to go through qemu_machine field. Use MachineClass fields directly. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'qmp.c')
-rw-r--r--qmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmp.c b/qmp.c
index 74107be..c4836df 100644
--- a/qmp.c
+++ b/qmp.c
@@ -117,8 +117,8 @@ void qmp_cpu_add(int64_t id, Error **errp)
MachineClass *mc;
mc = MACHINE_GET_CLASS(current_machine);
- if (mc->qemu_machine->hot_add_cpu) {
- mc->qemu_machine->hot_add_cpu(id, errp);
+ if (mc->hot_add_cpu) {
+ mc->hot_add_cpu(id, errp);
} else {
error_setg(errp, "Not supported");
}