aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAmérico Wang <xiyou.wangcong@gmail.com>2009-03-24 12:07:19 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-03-30 22:35:30 -0400
commitb10153fe31dde3805f8320b61ef147cebe379aee (patch)
tree34328cc10414d77bc63f39d25447460c5ce14a05 /kernel
parente180a6b7759a99a28cbcce3547c4c80822cb6c2a (diff)
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')
-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,
2319 ftrace_release(mod->module_core, mod->core_size); 2319 ftrace_release(mod->module_core, mod->core_size);
2320 free_unload: 2320 free_unload:
2321 module_unload_free(mod); 2321 module_unload_free(mod);
2322 free_init:
2323#if defined(CONFIG_MODULE_UNLOAD) && defined(CONFIG_SMP) 2322#if defined(CONFIG_MODULE_UNLOAD) && defined(CONFIG_SMP)
2323 free_init:
2324 percpu_modfree(mod->refptr); 2324 percpu_modfree(mod->refptr);
2325#endif 2325#endif
2326 module_free(mod, mod->module_init); 2326 module_free(mod, mod->module_init);