]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Return error instead of always 0
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 26 Apr 2012 14:40:26 +0000 (11:40 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 26 Apr 2012 14:40:26 +0000 (11:40 -0300)
tools/kmod-depmod.c

index f11ceedbc3bfc0de28b93cfae70f413d64ed769e..e89dff6fc48ccb72c8dbdef5b7aa2e0f53567478 100644 (file)
@@ -1402,7 +1402,7 @@ static int depmod_modules_search(struct depmod *depmod)
 
        err = depmod_modules_search_dir(depmod, d, baselen, path);
        closedir(d);
-       return 0;
+       return err;
 }
 
 static int mod_cmp(const void *pa, const void *pb) {