]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: simplify lookup when builtin.modinfo.bin file is missing
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 10 Mar 2020 05:00:26 +0000 (22:00 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 23 Mar 2020 19:37:26 +0000 (12:37 -0700)
commit89443220e3943624eba8e2e960c13c124e2082b8
tree7a042aaae109bc1b3211496a932d15b0a4899847
parent53b30aeba2dedae9f5558f560231d9462e063dfc
libkmod: simplify lookup when builtin.modinfo.bin file is missing

When we try to lookup a module and builtin.modinfo.bin is missing, we
would do the right thing because the caller was replacing the return
code with 0 (and the list was not modified).

Make it simpler by allowing the caller to check and differentiate the
errors between module not found and index not found.
libkmod/libkmod-module.c
libkmod/libkmod.c