]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Do not call exported function for mod->name
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Sat, 31 Dec 2011 13:21:52 +0000 (11:21 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Sat, 31 Dec 2011 13:21:52 +0000 (11:21 -0200)
Name is always available and we don't neet to call a exported function
to get it.

libkmod/libkmod-module.c

index a94c6e290dce867443bbd972553438264df06c15..b0cee364ea187c997cd6d4e3d0103979f95346af 100644 (file)
@@ -536,7 +536,7 @@ KMOD_EXPORT int kmod_module_get_filtered_blacklist(const struct kmod_ctx *ctx,
                kmod_list_foreach(lb, blacklist) {
                        const char *name = lb->data;
 
-                       if (streq(name, kmod_module_get_name(mod))) {
+                       if (streq(name, mod->name)) {
                                filtered = true;
                                break;
                        }