kernel/module.c: fix an unused goto label
authorAmérico Wang <xiyou.wangcong@gmail.com>
Tue, 24 Mar 2009 16:07:19 +0000 (00:07 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 02:35:30 +0000 (13:05 +1030)
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>
kernel/module.c

index b862fdb6a3723e4f82aaadb49aa10fbc2f881877..7af72bbe4cc06a6e785e849482dbc4938686c109 100644 (file)
@@ -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);