summaryrefslogtreecommitdiffstats
path: root/qom
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-12-05 18:46:18 +0100
committerMarkus Armbruster2019-12-18 08:36:16 +0100
commit187c614767cdb3407bc67acf77b9b1a0d985a39d (patch)
tree67fb2937afba0a5c40fcd6f3954ed62d8f6c6429 /qom
parenterror: make Error **errp const where it is appropriate (diff)
downloadqemu-187c614767cdb3407bc67acf77b9b1a0d985a39d.tar.gz
qemu-187c614767cdb3407bc67acf77b9b1a0d985a39d.tar.xz
qemu-187c614767cdb3407bc67acf77b9b1a0d985a39d.zip
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 'qom')
-rw-r--r--qom/qom-hmp-cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qom/qom-hmp-cmds.c b/qom/qom-hmp-cmds.c
index a268e01eb4..cd08233a4c 100644
--- a/qom/qom-hmp-cmds.c
+++ b/qom/qom-hmp-cmds.c
@@ -37,7 +37,7 @@ void hmp_qom_list(Monitor *mon, const QDict *qdict)
}
qapi_free_ObjectPropertyInfoList(start);
}
- hmp_handle_error(mon, &err);
+ hmp_handle_error(mon, err);
}
void hmp_qom_set(Monitor *mon, const QDict *qdict)
@@ -59,7 +59,7 @@ void hmp_qom_set(Monitor *mon, const QDict *qdict)
}
object_property_parse(obj, value, property, &err);
}
- hmp_handle_error(mon, &err);
+ hmp_handle_error(mon, err);
}
typedef struct QOMCompositionState {