tracing: remove unneeded variable
authorWenji Huang <wenji.huang@oracle.com>
Tue, 10 Feb 2009 06:02:46 +0000 (01:02 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Tue, 10 Feb 2009 17:32:18 +0000 (12:32 -0500)
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>
kernel/trace/trace_branch.c

index f8ae2c50e01d6700fcdf898da2174e89b1e30a4d..c2e68d440c4da925f8810e57009abf40e3ca77b7 100644 (file)
@@ -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)