riscv: remove unused variable in ftrace
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Thu, 6 Dec 2018 10:26:26 +0000 (11:26 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 21 Dec 2018 16:11:26 +0000 (08:11 -0800)
commit397182e0db56b8894a43631ce72de14d90a29834
treeebf8244af5b33f5e8d9a648a5087b828dc149921
parentcd378dbb3dafbee16ef956d4101ede567f6ea2f7
riscv: remove unused variable in ftrace

Noticed while building kernel-4.20.0-0.rc5.git2.1.fc30 for
Fedora 30/RISCV.

[..]
BUILDSTDERR: arch/riscv/kernel/ftrace.c: In function 'prepare_ftrace_return':
BUILDSTDERR: arch/riscv/kernel/ftrace.c:135:6: warning: unused variable 'err' [-Wunused-variable]
BUILDSTDERR:   int err;
BUILDSTDERR:       ^~~
[..]

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Fixes: e949b6db51dc1 ("riscv/function_graph: Simplify with function_graph_enter()")
Reviewed-by: Olof Johansson <olof@lixom.net>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/ftrace.c