From 4926cb501d1dfeb19f9cb7788ea26d91d2ee6e47 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 31 Dec 2011 11:21:52 -0200 Subject: [PATCH] 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. --- libkmod/libkmod-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2