diff options
-rw-r--r-- | kernel/trace/trace_branch.c | 4 |
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) | |||
91 | 91 | ||
92 | int enable_branch_tracing(struct trace_array *tr) | 92 | int enable_branch_tracing(struct trace_array *tr) |
93 | { | 93 | { |
94 | int ret = 0; | ||
95 | |||
96 | mutex_lock(&branch_tracing_mutex); | 94 | mutex_lock(&branch_tracing_mutex); |
97 | branch_tracer = tr; | 95 | branch_tracer = tr; |
98 | /* | 96 | /* |
@@ -103,7 +101,7 @@ int enable_branch_tracing(struct trace_array *tr) | |||
103 | branch_tracing_enabled++; | 101 | branch_tracing_enabled++; |
104 | mutex_unlock(&branch_tracing_mutex); | 102 | mutex_unlock(&branch_tracing_mutex); |
105 | 103 | ||
106 | return ret; | 104 | return 0; |
107 | } | 105 | } |
108 | 106 | ||
109 | void disable_branch_tracing(void) | 107 | void disable_branch_tracing(void) |