modules-load: fix return value

This commit is contained in:
Michal Schmidt 2012-06-28 00:12:47 +02:00
parent 3471bedc00
commit 8f9c0b4cc1
1 changed files with 1 additions and 1 deletions

View File

@ -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) {