]> git.ipfire.org Git - thirdparty/qemu.git/commit
monitor: make hmp_handle_error return a boolean
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 28 Oct 2021 15:18:25 +0000 (16:18 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 2 Nov 2021 15:55:13 +0000 (15:55 +0000)
commit0ca117a756a79c0f93c9030b5c5a92982e3b0ee5
treeeab7211dff3dfd18993477d746f7c4bedf4ce02f
parent3e11e0b2dd5b0ed98d129aeacf46276f3671b5f5
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>
hw/core/machine-hmp-cmds.c
include/monitor/hmp.h
monitor/hmp-cmds.c