summary refs log tree commit diff stats
path: root/hw/display/omap_dss.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-06-24 17:13:12 +0200
committerKevin Wolf <kwolf@redhat.com>2013-06-28 09:20:26 +0200
commitcb78466ef60ccf707a6f38a1294c435b65a828e0 (patch)
tree1d1c42ab7247bd4a9ba1a170f45623685f8b6ee6 /hw/display/omap_dss.c
parent98d2c6f2cd80afaa2dc10091f5e35a97c181e4f5 (diff)
downloadfocaccia-qemu-cb78466ef60ccf707a6f38a1294c435b65a828e0.tar.gz
focaccia-qemu-cb78466ef60ccf707a6f38a1294c435b65a828e0.zip
blockdev: drop redundant proto_drv check
It is not necessary to check that we can find a protocol block driver
since we create or open the image file.  This produces the error that we
need anyway.

Besides, the QERR_INVALID_BLOCK_FORMAT is inappropriate since the
protocol is incorrect rather than the format.

Also drop an empty line between bdrv_open() and checking its return
value.  This may be due to copy-pasting from earlier code that performed
other operations before handling errors.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/display/omap_dss.c')
0 files changed, 0 insertions, 0 deletions