]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Move error check of local_err near its assignment
authorTuguoyi <tu.guoyi@h3c.com>
Wed, 18 Dec 2019 11:53:35 +0000 (11:53 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 Dec 2019 13:31:52 +0000 (14:31 +0100)
commit66be5c3e7825cab861b3d68e87851a4ac9ff8c3d
tree40bd29e7968fb078e1cbce21738950244c32b580
parenteb4ea9aaa0051054b3c148ad8631be7510851681
qcow2: Move error check of local_err near its assignment

The local_err check outside of the if block was necessary
when it was introduced in commit d1258dd0c87 because it needed to be
executed even if qcow2_load_autoloading_dirty_bitmaps() returned false.

After some modifications that all required the error check to remain
where it is, commit 9c98f145dfb finally moved the
qcow2_load_dirty_bitmaps() call into the if block, so now the error
check should be there, too.

Signed-off-by: Guoyi Tu <tu.guoyi@h3c.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c