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.
}
}
-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);
}
}
}
-
- if (retval > 0)
- retval = 0;
-
- return -retval;
}
{
init_logging("udevstart");
- return udev_scan();
+ udev_scan();
+
+ return 0;
}