diff options
author | 2014-04-29 18:32:25 +0200 | |
---|---|---|
committer | 2014-04-30 12:43:30 +0200 | |
commit | 35d0d40a034b2392f48f91e4e00c8c94e3526a19 (patch) | |
tree | 954098af8d0e64a78824eb939ba8e62d98162aef /scripts/qapi-commands.py | |
parent | block: Fix open_flags in bdrv_reopen() (diff) | |
download | qemu-35d0d40a034b2392f48f91e4e00c8c94e3526a19.tar.xz qemu-35d0d40a034b2392f48f91e4e00c8c94e3526a19.zip |
block: Use error_abort in bdrv_image_info_specific_dump()
Currently, bdrv_image_info_specific_dump() uses an error variable for
visit_type_ImageInfoSpecific, but ignores the result. As this function
is used here with an output visitor to transform the ImageInfoSpecific
object to a generic QDict, an error should actually be impossible. It is
however better to assert that this is indeed the case. This is done by
this patch using error_abort instead of an unused local Error variable.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions