]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
depmod: don't return error if modules.builtin don't exist
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 15 Jun 2012 05:39:34 +0000 (02:39 -0300)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 15 Jun 2012 05:42:25 +0000 (02:42 -0300)
tools/depmod.c

index 9c51c6ef13ca52e848075717ead6b2c98545efdf..d8dded6d51ca14b3630865b912feadf38b2500ef 100644 (file)
@@ -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();