]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: simplify calling of virPCIDeviceDetectFunctionLevelReset()
authorLaine Stump <laine@redhat.com>
Sun, 6 Dec 2020 21:05:03 +0000 (16:05 -0500)
committerLaine Stump <laine@redhat.com>
Sat, 12 Dec 2020 23:36:30 +0000 (18:36 -0500)
commit47ccca4fd3d37e47e0cc304e963980c5b6cb15a5
tree2a00ca9674774758278049ee4e378310d4241545
parent01e421c16abbb5e9d0e1773c48f09dca1332251f
util: simplify calling of virPCIDeviceDetectFunctionLevelReset()

This function returned an int, and that int was being checked for < 0
in its solitary caller, but within the function it would only ever
return 0 or 1. Change the function itself to return a bool, and the
caller to just directly set the flag in the virPCIDevice.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virpci.c