summaryrefslogtreecommitdiffstats
path: root/block/qapi.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-10-19 17:53:27 +0200
committerKevin Wolf <kwolf@redhat.com>2015-10-23 18:18:23 +0200
commita46fc9c95012f3d7ed2b29b59f042246d62a08d7 (patch)
tree7710cbe1e5eaeaf6b35fbd43222fd63eb34ec80c /block/qapi.c
parentc09ba36c9ab62e3043041e429205f57ffbe3ba8b (diff)
downloadhqemu-a46fc9c95012f3d7ed2b29b59f042246d62a08d7.zip
hqemu-a46fc9c95012f3d7ed2b29b59f042246d62a08d7.tar.gz
block: Prepare remaining BB functions for NULL BDS
There are several BlockBackend functions which, in theory, cannot fail. This patch makes them cope with the BlockDriverState pointer being NULL by making them fall back to some default action like ignoring the value in setters and returning the default in getters. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qapi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud