qemu/qom
Markus Armbruster 1c94a35164 qom: Use return values to check for error where that's simpler
When using the Error object to check for error, we need to receive it
into a local variable, then propagate() it to @errp.

Using the return value permits allows receiving it straight to @errp.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-26-armbru@redhat.com>
2020-07-10 15:18:08 +02:00
..
container.c qom/container: remove .instance_size initializer from container_info 2020-06-10 12:09:59 -04:00
Makefile.objs qemu-storage-daemon: Add --object option 2020-03-06 17:21:28 +01:00
object_interfaces.c qapi: Use returned bool to check for failure, Coccinelle part 2020-07-10 15:18:08 +02:00
object.c qom: Use return values to check for error where that's simpler 2020-07-10 15:18:08 +02:00
qom-hmp-cmds.c hmp: Make json format optional for qom-set 2020-06-17 17:48:39 +01:00
qom-qmp-cmds.c qdev: device module support 2020-07-07 14:54:29 +02:00
qom-qobject.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00