]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
block: Handle bs->options in bdrv_open() only
authorMax Reitz <mreitz@redhat.com>
Tue, 18 Feb 2014 17:33:10 +0000 (18:33 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 20:02:22 +0000 (21:02 +0100)
commit5469a2a688b47bc6d8d224c3f1b02cd96b0e4b65
treea09f3efedccc0e0deb067da4ea4e2df858d1bf6f
parentd4446eae630a363403ec73182cf371deeed4e172
block: Handle bs->options in bdrv_open() only

The fail paths of bdrv_file_open() and bdrv_open() naturally exhibit
similarities, thus it is possible to reuse the one from bdrv_open() and
shorten the one in bdrv_file_open() accordingly.

Also, setting bs->options in bdrv_file_open() is not necessary if it is
already done in bdrv_open().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c