mirror of https://gitee.com/openkylin/qemu.git
block: Avoid useless local_err
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
12efe428c9
commit
a4615ab31c
4
block.c
4
block.c
|
@ -3155,14 +3155,12 @@ int bdrv_reopen_multiple(AioContext *ctx, BlockReopenQueue *bs_queue, Error **er
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
BlockReopenQueueEntry *bs_entry, *next;
|
BlockReopenQueueEntry *bs_entry, *next;
|
||||||
Error *local_err = NULL;
|
|
||||||
|
|
||||||
assert(bs_queue != NULL);
|
assert(bs_queue != NULL);
|
||||||
|
|
||||||
QSIMPLEQ_FOREACH(bs_entry, bs_queue, entry) {
|
QSIMPLEQ_FOREACH(bs_entry, bs_queue, entry) {
|
||||||
assert(bs_entry->state.bs->quiesce_counter > 0);
|
assert(bs_entry->state.bs->quiesce_counter > 0);
|
||||||
if (bdrv_reopen_prepare(&bs_entry->state, bs_queue, &local_err)) {
|
if (bdrv_reopen_prepare(&bs_entry->state, bs_queue, errp)) {
|
||||||
error_propagate(errp, local_err);
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
bs_entry->prepared = true;
|
bs_entry->prepared = true;
|
||||||
|
|
Loading…
Reference in New Issue