diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2019-12-05 20:46:18 +0300 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-12-18 08:36:16 +0100 |
commit | 187c614767cdb3407bc67acf77b9b1a0d985a39d (patch) | |
tree | 67fb2937afba0a5c40fcd6f3954ed62d8f6c6429 /dump/dump-hmp-cmds.c | |
parent | 49fbc7236dd203f9c6afa87454f603a9236a0b3b (diff) | |
download | qemu-187c614767cdb3407bc67acf77b9b1a0d985a39d.zip qemu-187c614767cdb3407bc67acf77b9b1a0d985a39d.tar.gz qemu-187c614767cdb3407bc67acf77b9b1a0d985a39d.tar.bz2 |
hmp: drop Error pointer indirection in hmp_handle_error
We don't need Error **, as all callers pass local Error object, which
isn't used after the call. Use Error * instead.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20191205174635.18758-5-vsementsov@virtuozzo.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'dump/dump-hmp-cmds.c')
-rw-r--r-- | dump/dump-hmp-cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dump/dump-hmp-cmds.c b/dump/dump-hmp-cmds.c index 3dbf443..e5053b0 100644 --- a/dump/dump-hmp-cmds.c +++ b/dump/dump-hmp-cmds.c @@ -32,7 +32,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict) if (zlib + lzo + snappy + win_dmp > 1) { error_setg(&err, "only one of '-z|-l|-s|-w' can be set"); - hmp_handle_error(mon, &err); + hmp_handle_error(mon, err); return; } @@ -66,7 +66,7 @@ void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict) qmp_dump_guest_memory(paging, prot, true, detach, has_begin, begin, has_length, length, true, dump_format, &err); - hmp_handle_error(mon, &err); + hmp_handle_error(mon, err); g_free(prot); } |