diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c index a90217d..d8637a2 100644 --- a/src/node_device/node_device_udev.c +++ b/src/node_device/node_device_udev.c @@ -491,7 +491,8 @@ static int udevProcessPCI(struct udev_device *device, /* Out of memory */ if (rc < 0) goto out; - else if (!rc && (data->pci_dev.num_virtual_functions > 0)) + + if (data->pci_dev.num_virtual_functions > 0) data->pci_dev.flags |= VIR_NODE_DEV_CAP_FLAG_PCI_VIRTUAL_FUNCTION; ret = 0;