mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
hwdb: return false if no property is found
This commit is contained in:
parent
a3f6aa268c
commit
beef8df837
@ -178,9 +178,9 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
|
||||
} else
|
||||
srcdev = dev;
|
||||
|
||||
if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) < 0)
|
||||
return EXIT_FAILURE;
|
||||
return EXIT_SUCCESS;
|
||||
if (udev_builtin_hwdb_search(dev, srcdev, subsystem, prefix, filter, test) > 0)
|
||||
return EXIT_SUCCESS;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
/* called at udev startup and reload */
|
||||
|
Loading…
Reference in New Issue
Block a user