]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: remove redundant check for file length when determining PCIe vs. PCI
authorLaine Stump <laine@redhat.com>
Tue, 8 Dec 2020 19:44:30 +0000 (14:44 -0500)
committerLaine Stump <laine@redhat.com>
Sun, 13 Dec 2020 02:18:46 +0000 (21:18 -0500)
commitcd338954b7056ba5c98fa860ce120358cbb74566
tree36affe32299c4b0d3cb171eda1a7761e5950ee7e
parentc00b6b1ae3bea8b5e6407b0991f0b1f16f129645
qemu: remove redundant check for file length when determining PCIe vs. PCI

Now that virPCIDeviceIsPCIExpress() checks the length of the file when
the process lacks sufficient privilege to read the entire PCI config
file in sysfs, we can remove the open-coding for that case from its
consumer.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain_address.c