]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: address: Handle all the video devices within a single loop
authorErik Skultety <eskultet@redhat.com>
Wed, 23 May 2018 13:55:36 +0000 (15:55 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 9 Jul 2018 16:59:02 +0000 (18:59 +0200)
commit3e90bd67a215adcb997b8c2be5d1d6b83251409f
treee16b0f11a092a9af8f11267bdfc6cf15e4b6d513
parentff767f083f559ee1143b7347169ffdeb51de65e7
qemu: address: Handle all the video devices within a single loop

Since 133fb140 moved the validation of a video device into a separate
function, the code handling PCI slot assignment for video devices has
been the same for both the primary device and the secondary devices.
Let's merge these and thus handle all the devices within the existing
'for' loop.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_domain_address.c