chiark / gitweb /
modules-load: fix return value
authorMichal Schmidt <mschmidt@redhat.com>
Wed, 27 Jun 2012 22:12:47 +0000 (00:12 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 27 Jun 2012 22:12:47 +0000 (00:12 +0200)
src/modules-load/modules-load.c

index 06e1a8cc84143b519ba6df1c6ea9e34ed5174bad..0e4dca499780192656a83033d4d500cef315b745 100644 (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) {