modules-load: fix return value
This commit is contained in:
parent
3471bedc00
commit
8f9c0b4cc1
|
@ -131,7 +131,7 @@ static int load_module(struct kmod_ctx *ctx, const char *m) {
|
|||
|
||||
if (!modlist) {
|
||||
log_error("Failed to find module '%s'", m);
|
||||
return r;
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
kmod_list_foreach(itr, modlist) {
|
||||
|
|
Loading…
Reference in New Issue