From c5db1a3fd21a53a4592ee4e8c25efde01e6e2286 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Fri, 15 Jun 2012 02:39:34 -0300 Subject: [PATCH] depmod: don't return error if modules.builtin don't exist --- tools/depmod.c | 5 ++--- 1 file 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(); -- 2.7.4