libvirt/src/hypervisor
Laine Stump 06e318c328 util: simplify virHostdevPCISysfsPath()
Apparently at some point in the past, when there were multiple types
to represent PCI addresses, the function
virPCIDeviceAddressGetSysfsFile() used one of those types, while
virDomainHostDevDef used another. It's been quite awhile since we
reduced the number of different representations of PCI address, but
this function was still creating a temporary virPCIDeviceAddress, then
copying the individual elements into this temporary object from the
same type of object in the virDomainHostDevDef.

This patch just eliminates that pointless copy.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2020-10-21 15:13:21 -04:00
..
domain_cgroup.c
domain_cgroup.h
domain_driver.c src: use g_new0 instead of VIR_ALLOC 2020-10-08 19:19:22 +02:00
domain_driver.h
meson.build
virclosecallbacks.c src: use g_new0 instead of VIR_ALLOC 2020-10-08 19:19:22 +02:00
virclosecallbacks.h
virhostdev.c util: simplify virHostdevPCISysfsPath() 2020-10-21 15:13:21 -04:00
virhostdev.h