mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 14:55:26 +03:00
don't return an error, if "ignore_device" is used
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
30473427e8
commit
8d1425d547
10
udev_event.c
10
udev_event.c
@ -95,7 +95,7 @@ int udev_process_event(struct udev_rules *rules, struct udevice *udev)
|
||||
if (udev->ignore_device) {
|
||||
info("device event will be ignored");
|
||||
sysfs_close_class_device(class_dev);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
if (udev->name[0] != '\0') {
|
||||
/* create node, store in db */
|
||||
@ -109,7 +109,7 @@ int udev_process_event(struct udev_rules *rules, struct udevice *udev)
|
||||
if (udev->ignore_device) {
|
||||
info("device event will be ignored");
|
||||
sysfs_close_class_device(class_dev);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
sysfs_close_class_device(class_dev);
|
||||
@ -127,7 +127,7 @@ int udev_process_event(struct udev_rules *rules, struct udevice *udev)
|
||||
udev_rules_get_run(rules, udev, NULL, NULL);
|
||||
if (udev->ignore_device) {
|
||||
dbg("device event will be ignored");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,14 +151,14 @@ int udev_process_event(struct udev_rules *rules, struct udevice *udev)
|
||||
sysfs_close_device(devices_dev);
|
||||
if (udev->ignore_device) {
|
||||
info("device event will be ignored");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
dbg("default handling");
|
||||
udev_rules_get_run(rules, udev, NULL, NULL);
|
||||
if (udev->ignore_device) {
|
||||
info("device event will be ignored");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user