Skip to content

Commit

Permalink
tracing: remove unneeded variable
Browse files Browse the repository at this point in the history
Impact: clean up.

Remove the unnecessary variable ret.

Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
  • Loading branch information
Wenji Huang authored and Steven Rostedt committed Feb 10, 2009
1 parent 4543ae7 commit f54fc98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/trace/trace_branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ret = 0;

mutex_lock(&branch_tracing_mutex);
branch_tracer = tr;
/*
Expand All @@ -103,7 +101,7 @@ int enable_branch_tracing(struct trace_array *tr)
branch_tracing_enabled++;
mutex_unlock(&branch_tracing_mutex);

return ret;
return 0;
}

void disable_branch_tracing(void)
Expand Down

0 comments on commit f54fc98

Please sign in to comment.