ftrace: Pass retval through return in ftrace_dyn_arch_init()
authorJiri Slaby <jslaby@suse.cz>
Mon, 24 Feb 2014 18:59:58 +0000 (19:59 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 7 Mar 2014 15:06:13 +0000 (10:06 -0500)
commitaf64a7cb09db77344c596a0bf3d57d77257e8bf5
tree9bfca2ea8870ed23eb49dca85303ec49752217a7
parentc867ccd8388d1c1a31bef9c54544b2ef32f0ebca
ftrace: Pass retval through return in ftrace_dyn_arch_init()

No architecture uses the "data" parameter in ftrace_dyn_arch_init() in any
way, it just sets the value to 0. And this is used as a return value
in the caller -- ftrace_init, which just checks the retval against
zero.

Note there is also "return 0" in every ftrace_dyn_arch_init.  So it is
enough to check the retval and remove all the indirect sets of data on
all archs.

Link: http://lkml.kernel.org/r/1393268401-24379-3-git-send-email-jslaby@suse.cz
Cc: linux-arch@vger.kernel.org
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
14 files changed:
Documentation/trace/ftrace-design.txt
arch/arm/kernel/ftrace.c
arch/blackfin/kernel/ftrace.c
arch/ia64/kernel/ftrace.c
arch/metag/kernel/ftrace.c
arch/microblaze/kernel/ftrace.c
arch/mips/kernel/ftrace.c
arch/powerpc/kernel/ftrace.c
arch/s390/kernel/ftrace.c
arch/sh/kernel/ftrace.c
arch/sparc/kernel/ftrace.c
arch/tile/kernel/ftrace.c
arch/x86/kernel/ftrace.c
kernel/trace/ftrace.c