module: Increase readability of module_kallsyms_lookup_name()
module_kallsyms_lookup_name() has several exit conditions but can't return immediately due to preempt_disable(). Refactor module_kallsyms_lookup_name() to allow returning from anywhere, and reduce depth. Signed-off-by:Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by:
Luis Chamberlain <mcgrof@kernel.org>
Showing
Please register or sign in to comment