diff --git a/src/ftrace.c b/src/ftrace.c index 7eed223..92cba2d 100644 --- a/src/ftrace.c +++ b/src/ftrace.c @@ -55,8 +55,7 @@ static void notrace fh_trace_thunk(unsigned long ip, unsigned long parent_ip, st #else static void notrace fh_trace_thunk(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct ftrace_regs *fregs) { - struct pt_regs *regs; - regs = ftrace_get_regs(fregs); + struct pt_regs *regs = ftrace_get_regs(fregs); #endif struct ftrace_hook *hook = to_ftrace_hook(ops);