]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: remove extra function in middle of DetachController call chain
authorLaine Stump <laine@laine.org>
Tue, 19 Mar 2019 21:37:55 +0000 (17:37 -0400)
committerLaine Stump <laine@laine.org>
Tue, 26 Mar 2019 15:05:03 +0000 (11:05 -0400)
commite4d96324b48b8aab864212382390a5c4a40970d2
tree091deb2ee33072d316d8b720276b5e9924b75add
parent6a9c3fbade1d5479f4893a0f31293f13ad8bf229
qemu_hotplug: remove extra function in middle of DetachController call chain

qemuDomainDetachDeviceControllerLive() just checks if the controller
type is SCSI, and then either returns failure, or calls
qemuDomainDetachControllerDevice().

Instead, lets just check for type != SCSI at the top of the latter
function, and call it directly.

Signed-off-by: Laine Stump <laine@laine.org>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_hotplug.c