char **t, **k;
k = strv_split(p, ",");
- if (!k) {
- log_error("Out of memory");
- return -ENOMEM;
- }
+ if (!k)
+ return log_oom();
t = strv_merge(arg_proc_cmdline_modules, k);
strv_free(k);
- if (!t) {
- log_error("Out of memory");
- return -ENOMEM;
- }
+ if (!t)
+ return log_oom();
strv_free(arg_proc_cmdline_modules);
arg_proc_cmdline_modules = t;
if (startswith(word, "modules-load=")) {
- r = add_modules(word + 7);
+ r = add_modules(word + 13);
if (r < 0)
goto finish;
} else if (startswith(word, "rd.modules-load=")) {
if (in_initrd()) {
- r = add_modules(word + 10);
+ r = add_modules(word + 16);
if (r < 0)
goto finish;
}