diff options
author | Markus Armbruster | 2020-07-07 18:05:53 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-07-10 15:18:08 +0200 |
commit | 1c94a351644fb2555f34e63c8ddc29f70bd4803a (patch) | |
tree | 1b514b71f4fd62bb48cbf7f26d8c16f1285319e2 /hw/core/numa.c | |
parent | qom: Don't handle impossible object_property_get_link() failure (diff) | |
download | qemu-1c94a351644fb2555f34e63c8ddc29f70bd4803a.tar.gz qemu-1c94a351644fb2555f34e63c8ddc29f70bd4803a.tar.xz qemu-1c94a351644fb2555f34e63c8ddc29f70bd4803a.zip |
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>
Diffstat (limited to 'hw/core/numa.c')
0 files changed, 0 insertions, 0 deletions