diff options
| author | Stefan Hajnoczi | 2013-06-24 17:13:12 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2013-06-28 09:20:26 +0200 |
| commit | cb78466ef60ccf707a6f38a1294c435b65a828e0 (patch) | |
| tree | 1d1c42ab7247bd4a9ba1a170f45623685f8b6ee6 /qapi-schema.json | |
| parent | block: add basic backup support to block driver (diff) | |
| download | qemu-cb78466ef60ccf707a6f38a1294c435b65a828e0.tar.gz qemu-cb78466ef60ccf707a6f38a1294c435b65a828e0.tar.xz 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 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions
