summaryrefslogtreecommitdiff
path: root/kernel/module.c
diff options
context:
space:
mode:
authorAmérico Wang <xiyou.wangcong@gmail.com>2009-03-25 00:07:19 +0800
committerRusty Russell <rusty@rustcorp.com.au>2009-03-31 13:05:30 +1030
commitb10153fe31dde3805f8320b61ef147cebe379aee (patch)
tree34328cc10414d77bc63f39d25447460c5ce14a05 /kernel/module.c
parente180a6b7759a99a28cbcce3547c4c80822cb6c2a (diff)
downloadlwn-b10153fe31dde3805f8320b61ef147cebe379aee.tar.gz
lwn-b10153fe31dde3805f8320b61ef147cebe379aee.zip
kernel/module.c: fix an unused goto label
Impact: cleanup Label 'free_init' is only used when defined(CONFIG_MODULE_UNLOAD) && defined(CONFIG_SMP), so move it inside to shut up gcc. Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index b862fdb6a372..7af72bbe4cc0 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2319,8 +2319,8 @@ static noinline struct module *load_module(void __user *umod,
ftrace_release(mod->module_core, mod->core_size);
free_unload:
module_unload_free(mod);
- free_init:
#if defined(CONFIG_MODULE_UNLOAD) && defined(CONFIG_SMP)
+ free_init:
percpu_modfree(mod->refptr);
#endif
module_free(mod, mod->module_init);