From 8d1425d54717b9b9ec06efdd1dd25559445e2571 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 24 Nov 2005 20:06:51 +0100 Subject: [PATCH] don't return an error, if "ignore_device" is used Signed-off-by: Kay Sievers --- udev_event.c | 10 +++++----- 1 file 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;