summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-11-24 20:06:51 +0100
committerKay Sievers <kay.sievers@suse.de>2005-11-24 20:06:51 +0100
commit8d1425d54717b9b9ec06efdd1dd25559445e2571 (patch)
tree3c24c9e9ef87939bfa66fcfb7171c0f77a783692
parent30473427e8c958158750a0ee412315282c25f3ae (diff)
don't return an error, if "ignore_device" is used
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udev_event.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/udev_event.c b/udev_event.c
index 353aff09b7..0b4b9dc495 100644
--- a/udev_event.c
+++ b/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;