diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-07-07 18:05:53 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-07-10 15:18:08 +0200 |
commit | 1c94a351644fb2555f34e63c8ddc29f70bd4803a (patch) | |
tree | 1b514b71f4fd62bb48cbf7f26d8c16f1285319e2 /hw/i386/pc.c | |
parent | 4d21fcd52404ff4bac1f94d8054dfb745f1b2ad6 (diff) | |
download | qemu-1c94a351644fb2555f34e63c8ddc29f70bd4803a.zip qemu-1c94a351644fb2555f34e63c8ddc29f70bd4803a.tar.gz qemu-1c94a351644fb2555f34e63c8ddc29f70bd4803a.tar.bz2 |
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/i386/pc.c')
0 files changed, 0 insertions, 0 deletions