Commit f54fc98a authored by Wenji Huang's avatar Wenji Huang Committed by Steven Rostedt

tracing: remove unneeded variable

Impact: clean up.

Remove the unnecessary variable ret.
Signed-off-by: default avatarWenji Huang <wenji.huang@oracle.com>
Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment