summary refs log tree commit diff stats
path: root/hw/ide/pci.c
diff options
context:
space:
mode:
authorPan Nengyuan <pannengyuan@huawei.com>2019-12-05 11:45:27 +0800
committerEric Blake <eblake@redhat.com>2020-02-26 17:28:08 -0600
commit7f493662be4045146a8f45119d8834c9088a0ad6 (patch)
tree7baf7d68754ec35fe2a69d492a5c6262eaea32a0 /hw/ide/pci.c
parent2485f22fe9211b2e80970f83199b320eee211319 (diff)
downloadfocaccia-qemu-7f493662be4045146a8f45119d8834c9088a0ad6.tar.gz
focaccia-qemu-7f493662be4045146a8f45119d8834c9088a0ad6.zip
block/nbd: extract the common cleanup code
The BDRVNBDState cleanup code is common in two places, add
nbd_clear_bdrvstate() function to do these cleanups.

Suggested-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <1575517528-44312-2-git-send-email-pannengyuan@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: fix compilation error and commit message]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'hw/ide/pci.c')
0 files changed, 0 insertions, 0 deletions