mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
2ec4664b1e
commit
5ce91139da
@ -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 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user