diff options
author | Daniel P. Berrangé | 2021-10-28 17:18:25 +0200 |
---|---|---|
committer | Daniel P. Berrangé | 2021-11-02 16:55:13 +0100 |
commit | 0ca117a756a79c0f93c9030b5c5a92982e3b0ee5 (patch) | |
tree | eab7211dff3dfd18993477d746f7c4bedf4ce02f /hw/core | |
parent | monitor: remove 'info ioapic' HMP command (diff) | |
download | qemu-0ca117a756a79c0f93c9030b5c5a92982e3b0ee5.tar.gz qemu-0ca117a756a79c0f93c9030b5c5a92982e3b0ee5.tar.xz qemu-0ca117a756a79c0f93c9030b5c5a92982e3b0ee5.zip |
monitor: make hmp_handle_error return a boolean
This turns the pattern
if (err) {
hmp_handle_error(mon, err);
return;
}
into
if (hmp_handle_error(mon, err)) {
return;
}
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/machine-hmp-cmds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/core/machine-hmp-cmds.c b/hw/core/machine-hmp-cmds.c index 76b22b00d6..c356783ab9 100644 --- a/hw/core/machine-hmp-cmds.c +++ b/hw/core/machine-hmp-cmds.c @@ -53,8 +53,7 @@ void hmp_hotpluggable_cpus(Monitor *mon, const QDict *qdict) HotpluggableCPUList *saved = l; CpuInstanceProperties *c; - if (err != NULL) { - hmp_handle_error(mon, err); + if (hmp_handle_error(mon, err)) { return; } |