summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorAlberto Garcia2019-04-04 13:29:53 +0200
committerMax Reitz2019-05-07 17:14:21 +0200
commit0b3ca76e52f025caf234b77d471465e983a711d0 (patch)
tree8fb17e78f1ee5275ff0ac74c43e05ff3e4d97626 /python
parentblock/ssh: Implement .bdrv_dirname() (diff)
downloadqemu-0b3ca76e52f025caf234b77d471465e983a711d0.tar.gz
qemu-0b3ca76e52f025caf234b77d471465e983a711d0.tar.xz
qemu-0b3ca76e52f025caf234b77d471465e983a711d0.zip
block: Assert that drv->bdrv_child_perm is set in bdrv_child_perm()
There is no need to check for this because all block drivers that have children implement bdrv_child_perm and all callers already ensure that bs->drv is set. Furthermore, if this check would fail then the callers would end up with uninitialized values for nperm and nshared. This patch replaces the check with an assertion. Signed-off-by: Alberto Garcia <berto@igalia.com> Message-id: 20190404112953.4058-1-berto@igalia.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions