summaryrefslogtreecommitdiffstats
path: root/initd/mkdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'initd/mkdev.c')
-rw-r--r--initd/mkdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/initd/mkdev.c b/initd/mkdev.c
index 5ac6e95..e6d3d0c 100644
--- a/initd/mkdev.c
+++ b/initd/mkdev.c
@@ -121,7 +121,5 @@ int mkdev(const char *name, int _mode)
n_patterns = 1;
find_devs(true);
find_devs(false);
- chdir("/");
-
- return 0;
+ return chdir("/");
}