]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: clean up bdrv_open2 structure a bit
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Jan 2010 17:13:25 +0000 (18:13 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 21:42:02 +0000 (15:42 -0600)
commit6987307ca30aead67e8545934186c92f942710f6
treed70243011f5ba6ddad10b0e03d4b29de683c1554
parent392ecf543dd2b219828374850d833296a55567ea
block: clean up bdrv_open2 structure a bit

Check the whitelist as early as possible instead of continuing the
setup, and move all the error handling code to the end of the
function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c