]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Drop virPCIGetAddrString()
authorAndrea Bolognani <abologna@redhat.com>
Tue, 4 Sep 2018 17:05:46 +0000 (19:05 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 5 Sep 2018 13:51:42 +0000 (15:51 +0200)
commitca7ad978a96574d904cabe48996dc2b8e1b8bb57
tree3adb404065327101f81653201454dc815de995b4
parenta14f5972660292c2ec6d1545d5fa45e68bbe63fb
util: Drop virPCIGetAddrString()

There's a single user for it which takes an existing
virPCIDeviceAddress, passes its various bits to the
function which in turn constructs a virPCIDevice and
then copies the string representation for the caller
to use: we can use virPCIDeviceAddressAsString()
instead and avoid creating the virPCIDevice in the
first place. Since the function ends up having no
users after the change, we can just drop it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virnetdev.c
src/util/virpci.c
src/util/virpci.h