diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index ca644e37f50..0a1e5dd7b77 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c @@ -287,7 +287,7 @@ static bool is_pci_multifunction(struct udev_device *dev) { } static bool is_pci_ari_enabled(struct udev_device *dev) { - return !!udev_device_get_sysattr_value(dev, "ari_enabled"); + return streq_ptr(udev_device_get_sysattr_value(dev, "ari_enabled"), "1"); } static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {