Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b10153fe authored by Américo Wang's avatar Américo Wang Committed by Rusty Russell
Browse files

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: default avatarWANG Cong <xiyou.wangcong@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent e180a6b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);