summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_branch.c
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-02-10 09:02:46 +0300
committerSteven Rostedt <srostedt@redhat.com>2009-02-10 20:32:18 +0300
commitf54fc98aa656f334c1571df6e3ca9178ea223847 (patch)
treecf6b0a206d8fc67a7fe989ac11f09af746026fcf /kernel/trace/trace_branch.c
parent4543ae7ce1cb8b5ff27a59009e7991ea63791a71 (diff)
downloadlinux-f54fc98aa656f334c1571df6e3ca9178ea223847.tar.xz
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>
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r--kernel/trace/trace_branch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index f8ae2c50e01d..c2e68d440c4d 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -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;
/*
@@ -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)