From: Lucas De Marchi Date: Sat, 31 Dec 2011 13:21:52 +0000 (-0200) Subject: Do not call exported function for mod->name X-Git-Tag: v3~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4926cb501d1dfeb19f9cb7788ea26d91d2ee6e47;p=thirdparty%2Fkmod.git Do not call exported function for mod->name Name is always available and we don't neet to call a exported function to get it. --- diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index a94c6e29..b0cee364 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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; }