]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: simplify virPCIFile() and its callers
authorLaine Stump <laine@redhat.com>
Sat, 10 Oct 2020 21:46:20 +0000 (17:46 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 21 Oct 2020 19:14:12 +0000 (15:14 -0400)
commit862f7e5c7345d078a97d7f42ffdbe96e04c781f2
treed9d3c382f600ed0e83153e04d2872b87deca4b06
parent06e318c3285fb63027aaa5596911eb067f824301
util: simplify virPCIFile() and its callers

There is no need for a temporary variable in this function, and ever
since we switched to glib for memory allocation, there is no possibility
it can return NULL, so callers don't need to check for it.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virpci.c