summaryrefslogtreecommitdiff
path: root/src/modules-load
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-06-28 00:12:47 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-06-28 00:12:47 +0200
commit8f9c0b4cc17dc0eb24e420f9bd6f8c9534b5dd84 (patch)
treed8b9b00c76ff3bf52cd8f3edefbe5cb1ccfc83a2 /src/modules-load
parent3471bedc005fab03f40b99bf6599645330adcd9e (diff)
modules-load: fix return value
Diffstat (limited to 'src/modules-load')
-rw-r--r--src/modules-load/modules-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
index 06e1a8cc84..0e4dca4997 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) {