]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Reuse success path from bdrv_open()
authorMax Reitz <mreitz@redhat.com>
Tue, 18 Feb 2014 17:33:11 +0000 (18:33 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 20:02:22 +0000 (21:02 +0100)
commit5acd9d81e1a59e1929aa3a06571f3fda1101c3a2
tree9ffafe41eb0cf1df4764185519ee5529c336ade8
parent5469a2a688b47bc6d8d224c3f1b02cd96b0e4b65
block: Reuse success path from bdrv_open()

The fail and success paths of bdrv_file_open() may be further shortened
by reusing code already existent in bdrv_open(). This includes
bdrv_file_open() not taking the reference to options which allows the
removal of QDECREF(options) in that function.

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