chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3471bed
)
modules-load: fix return value
author
Michal Schmidt
<mschmidt@redhat.com>
Wed, 27 Jun 2012 22:12:47 +0000
(
00:12
+0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Wed, 27 Jun 2012 22:12:47 +0000
(
00:12
+0200)
src/modules-load/modules-load.c
patch
|
blob
|
history
diff --git
a/src/modules-load/modules-load.c
b/src/modules-load/modules-load.c
index 06e1a8cc84143b519ba6df1c6ea9e34ed5174bad..0e4dca499780192656a83033d4d500cef315b745 100644
(file)
--- 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);
if (!modlist) {
log_error("Failed to find module '%s'", m);
- return
r
;
+ return
-ENOENT
;
}
kmod_list_foreach(itr, modlist) {
}
kmod_list_foreach(itr, modlist) {