mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
tracing: remove unneeded variable
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>
This commit is contained in:
parent
4543ae7ce1
commit
f54fc98aa6
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue