diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-03-13 18:05:15 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-03-17 16:05:40 +0100 |
commit | 20ac582d0cdf78348650318eeabba5bcd486613f (patch) | |
tree | 05acf1d77c7c41493772ffd738e781cb3a3d8ab8 /block/monitor | |
parent | 40c67636f67c2a89745f2e698522fe917326a952 (diff) | |
download | qemu-20ac582d0cdf78348650318eeabba5bcd486613f.zip qemu-20ac582d0cdf78348650318eeabba5bcd486613f.tar.gz qemu-20ac582d0cdf78348650318eeabba5bcd486613f.tar.bz2 |
Use &error_abort instead of separate assert()
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200313170517.22480-2-armbru@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
[Unused Error *variable deleted]
Diffstat (limited to 'block/monitor')
-rw-r--r-- | block/monitor/block-hmp-cmds.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/monitor/block-hmp-cmds.c b/block/monitor/block-hmp-cmds.c index c3a6368..4c8c375 100644 --- a/block/monitor/block-hmp-cmds.c +++ b/block/monitor/block-hmp-cmds.c @@ -838,10 +838,8 @@ void hmp_info_blockstats(Monitor *mon, const QDict *qdict) void hmp_info_block_jobs(Monitor *mon, const QDict *qdict) { BlockJobInfoList *list; - Error *err = NULL; - list = qmp_query_block_jobs(&err); - assert(!err); + list = qmp_query_block_jobs(&error_abort); if (!list) { monitor_printf(mon, "No active jobs\n"); |