aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.de.marchi@gmail.com>2012-06-15 02:39:34 -0300
committerLucas De Marchi <lucas.de.marchi@gmail.com>2012-06-15 02:42:25 -0300
commitc5db1a3fd21a53a4592ee4e8c25efde01e6e2286 (patch)
tree8f0c04dd41b5e80e191f71ca333681edca96916e
parentccd6afa4f250776b46e0a5eb3e3b64fed700b76a (diff)
downloadkmod-c5db1a3fd21a53a4592ee4e8c25efde01e6e2286.tar.gz
depmod: don't return error if modules.builtin don't exist
-rw-r--r--tools/depmod.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/depmod.c b/tools/depmod.c
index 9c51c6e..d8dded6 100644
--- a/tools/depmod.c
+++ b/tools/depmod.c
@@ -2119,12 +2119,11 @@ static int output_builtin_bin(struct depmod *depmod, FILE *out)
return 0;
snprintf(infile, sizeof(infile), "%s/modules.builtin",
- depmod->cfg->dirname);
+ depmod->cfg->dirname);
in = fopen(infile, "r");
if (in == NULL) {
- int err = -errno;
WRN("could not open %s: %m\n", infile);
- return err;
+ return 0;
}
idx = index_create();