mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
error: Reduce unnecessary error propagation
When all we do with an Error we receive into a local variable is propagating to somewhere else, we can just as well receive it there right away, even when we need to keep error_propagate() for other error paths. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200707160613.848843-38-armbru@redhat.com>
This commit is contained in:
parent
992861fb1e
commit
a5f9b9df25
8 changed files with 13 additions and 14 deletions
|
@ -828,7 +828,7 @@ static int parallels_open(BlockDriverState *bs, QDict *options, int flags,
|
|||
goto fail_options;
|
||||
}
|
||||
|
||||
if (!qemu_opts_absorb_qdict(opts, options, &local_err)) {
|
||||
if (!qemu_opts_absorb_qdict(opts, options, errp)) {
|
||||
goto fail_options;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue