block: Simplify bdrv_reopen_abort()
commit1bab38e7bd29347aca642c55a1de91ec6680efce
authorAlberto Garcia <berto@igalia.com>
Fri, 29 Jun 2018 11:37:01 +0000 (29 14:37 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 15 Aug 2018 10:50:39 +0000 (15 12:50 +0200)
tree91d7a0a5123aff8b29e1dac6ba6c10591475b388
parent2f624b80ba67f19edb3f7c5bc27cddc3c844e443
block: Simplify bdrv_reopen_abort()

If a bdrv_reopen_multiple() call fails, then the explicit_options
QDict has to be deleted for every entry in the reopen queue. This must
happen regardless of whether that entry's bdrv_reopen_prepare() call
succeeded or not.

This patch simplifies the cleanup code a bit.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c