提交 f54fc98a 编写于 作者: W Wenji Huang 提交者: Steven Rostedt

tracing: remove unneeded variable

Impact: clean up.

Remove the unnecessary variable ret.
Signed-off-by: NWenji Huang <wenji.huang@oracle.com>
Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
上级 4543ae7c
...@@ -91,8 +91,6 @@ void trace_likely_condition(struct ftrace_branch_data *f, int val, int expect) ...@@ -91,8 +91,6 @@ void trace_likely_condition(struct ftrace_branch_data *f, int val, int expect)
int enable_branch_tracing(struct trace_array *tr) int enable_branch_tracing(struct trace_array *tr)
{ {
int ret = 0;
mutex_lock(&branch_tracing_mutex); mutex_lock(&branch_tracing_mutex);
branch_tracer = tr; branch_tracer = tr;
/* /*
...@@ -103,7 +101,7 @@ int enable_branch_tracing(struct trace_array *tr) ...@@ -103,7 +101,7 @@ int enable_branch_tracing(struct trace_array *tr)
branch_tracing_enabled++; branch_tracing_enabled++;
mutex_unlock(&branch_tracing_mutex); mutex_unlock(&branch_tracing_mutex);
return ret; return 0;
} }
void disable_branch_tracing(void) void disable_branch_tracing(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册