hostdev: virHostdevIsPCINetDevice() should return a bool

The only possible return values are true and false, so the return
type should be bool instead of int.
This commit is contained in:
Andrea Bolognani 2016-02-25 15:39:25 +01:00
parent 2ec4664b1e
commit 5ce91139da

View File

@ -354,7 +354,7 @@ virHostdevNetDevice(virDomainHostdevDefPtr hostdev, char **linkdev,
} }
static int static bool
virHostdevIsPCINetDevice(virDomainHostdevDefPtr hostdev) virHostdevIsPCINetDevice(virDomainHostdevDefPtr hostdev)
{ {
return hostdev->mode == VIR_DOMAIN_HOSTDEV_MODE_SUBSYS && return hostdev->mode == VIR_DOMAIN_HOSTDEV_MODE_SUBSYS &&