summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormd@Linux.IT <md@Linux.IT>2004-03-04 19:10:02 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:08 -0700
commit3f20eac0a58dc3987200773a39163e30b60993fc (patch)
treef41d70c244656870ed94a4b2a3fc0b1e059d6a5b
parent824e601185babc5daf3e1c28c487bb4bc5ea48e2 (diff)
[PATCH] udevstart fixes
udevstart_no_retval: currently udevstart will always return rc=22 because of the error handling code. I completely removed it because it is not used, and returning a generic error to the init script is not much useful anyway.
-rw-r--r--udevstart.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/udevstart.c b/udevstart.c
index 21fd93df74..40dbaf2475 100644
--- a/udevstart.c
+++ b/udevstart.c
@@ -78,12 +78,11 @@ static void udev_exec(const char *path, const char* subsystem)
}
}
-static int udev_scan(void)
+static void udev_scan(void)
{
char *devpath;
DIR *dir;
struct dirent *dent;
- int retval = -EINVAL;
devpath = "block";
dir = opendir(SYSBLOCK);
@@ -179,11 +178,6 @@ static int udev_scan(void)
}
}
}
-
- if (retval > 0)
- retval = 0;
-
- return -retval;
}
@@ -191,5 +185,7 @@ int main(int argc, char *argv[], char *envp[])
{
init_logging("udevstart");
- return udev_scan();
+ udev_scan();
+
+ return 0;
}