]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Omit bdrv_find_format for essential drivers
authorMax Reitz <mreitz@redhat.com>
Tue, 2 Dec 2014 17:32:42 +0000 (18:32 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 21:07:22 +0000 (15:07 -0600)
commit1b9ea8961a8787672e7c146c91ee33aa815eb0da
tree32aca9a0550d0bf56512052c3569053cba940c61
parentcdeb85cf241fccd7995e5c62b8cee7bb23dcac86
block: Omit bdrv_find_format for essential drivers

We can always assume raw, file and qcow2 being available; so do not use
bdrv_find_format() to locate their BlockDriver objects but statically
reference the respective objects.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit ef8104378c4a0497be079e48ee5ac5a89c68f978)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c
block/qcow2.c