]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: simplify virPCIDriverDir() and its callers
authorLaine Stump <laine@redhat.com>
Sat, 10 Oct 2020 21:50:11 +0000 (17:50 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 21 Oct 2020 19:15:00 +0000 (15:15 -0400)
commitb3066b55bfa7a123c685dce9a688b0c2336b6c16
treeb7e44879c12bce999c60bdb20b86e7a6bad4edba
parent862f7e5c7345d078a97d7f42ffdbe96e04c781f2
util: simplify virPCIDriverDir() and its callers

There is no need for a temporary variable in this function, and since
it can't return NULL, no need for callers 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