]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Adjust return for virPCIGetDeviceAddressFromSysfsLink
authorJohn Ferlan <jferlan@redhat.com>
Tue, 17 May 2016 13:16:05 +0000 (09:16 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 19 May 2016 20:30:04 +0000 (16:30 -0400)
commitc1faf3093c649a1821207752be5b7b0408040679
treea1a9f50e12f9da7b5a0dae9b34a514664578e75a
parentc8b1a83605e4e70932f57537e94101a3a1998431
util: Adjust return for virPCIGetDeviceAddressFromSysfsLink

Rather than return 0/-1 and/or a pointer to some memory, adjust the
helper to just return the allocated structure or NULL on failure.

Adjust the callers in order to handle that

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virpci.c