udev-builtin-kmod: use the generic module_load() function

There should be no functional change.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-07-19 18:28:21 +02:00
parent 3cb9b42af3
commit c3ad978633
4 changed files with 20 additions and 42 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ static int apply_file(struct kmod_ctx *ctx, const char *path, bool ignore_enoent
if (strchr(COMMENTS "\n", *l))
continue;
k = module_load_and_warn(ctx, l);
k = module_load_and_warn(ctx, l, true);
if (k < 0 && r == 0)
r = k;
}
@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
char **fn, **i;
STRV_FOREACH(i, arg_proc_cmdline_modules) {
k = module_load_and_warn(ctx, *i);
k = module_load_and_warn(ctx, *i, true);
if (k < 0 && r == 0)
r = k;
}