diff options
author | Marcel Apfelbaum <marcel.a@redhat.com> | 2014-04-09 20:34:53 +0300 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-05-05 19:08:49 +0200 |
commit | 958db90cd54823c33345000c995453a8c9b7a005 (patch) | |
tree | 40b5b719074352d57d836534697f0eab7739ff86 /qmp.c | |
parent | f1e298794daea46e7f52995887c865ac6ada10b9 (diff) | |
download | qemu-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); } |