From: Peter Krempa Date: Tue, 14 Aug 2018 10:54:16 +0000 (+0200) Subject: qemu: monitor: Use qemuMonitorJSONCheckError in qemuMonitorJSONBlockStream X-Git-Tag: v4.7.0-rc1~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cead0af6a7929f42fa80244b6bec6caff127475;p=thirdparty%2Flibvirt.git qemu: monitor: Use qemuMonitorJSONCheckError in qemuMonitorJSONBlockStream The API does not report any special job-related error so the generic error function should be used. Signed-off-by: Peter Krempa Reviewed-by: John Ferlan --- diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 0eb7897685..12ab05a882 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -4833,7 +4833,7 @@ qemuMonitorJSONBlockStream(qemuMonitorPtr mon, if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0) goto cleanup; - if (qemuMonitorJSONBlockJobError(cmd, reply, device) < 0) + if (qemuMonitorJSONCheckError(cmd, reply) < 0) goto cleanup; ret = 0;