[systemd-commits] src/modules-load

Michal Schmidt michich at kemper.freedesktop.org
Wed Jun 27 15:14:35 PDT 2012


 src/modules-load/modules-load.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8f9c0b4cc17dc0eb24e420f9bd6f8c9534b5dd84
Author: Michal Schmidt <mschmidt at redhat.com>
Date:   Thu Jun 28 00:12:47 2012 +0200

    modules-load: fix return value

diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
index 06e1a8c..0e4dca4 100644
--- a/src/modules-load/modules-load.c
+++ b/src/modules-load/modules-load.c
@@ -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) {



More information about the systemd-commits mailing list