]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: separate counting of USB controllers
authorJán Tomko <jtomko@redhat.com>
Tue, 15 Jan 2019 15:28:55 +0000 (16:28 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 25 Jan 2019 13:54:51 +0000 (14:54 +0100)
commit8f5e50e003ece6177634736c2914872d91c71e4f
treefc932edead890add9ba74470d9440640a6a968f3
parentdab3d5d350a840621f79e390abe42a1fea13d750
qemu: separate counting of USB controllers

qemuBuildLegacyUSBControllerCommandLine is the only place where
we need to count the USB controllers.

Count them again instead of keeping track in a variable passed to
qemuBuildControllerDevStr.

This removes the need for another variable in the loop in
qemuBuildControllerDevCommandLine.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_command.c