[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1234245766-14506-1-git-send-email-wenji.huang@oracle.com>
Date: Tue, 10 Feb 2009 01:02:46 -0500
From: Wenji Huang <wenji.huang@...cle.com>
To: linux-kernel@...r.kernel.org
Cc: rostedt@...dmis.org, fweisbec@...il.com,
Wenji Huang <wenji.huang@...cle.com>
Subject: [PATCH 1/3] trace: remove unneeded variable.
Remove the unnecessary variable ret.
Impact: clean up.
Signed-off-by: Wenji Huang <wenji.huang@...cle.com>
---
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 f8ae2c5..c2e68d4 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)
--
1.5.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists