Skip to contentSkip to conversation

perf trace: Remove needless reassignments

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jun 25, 2014 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  774135344fa8aa044290d030068f92e9a3aab8cc
Gitweb:     http://git.kernel.org/tip/774135344fa8aa044290d030068f92e9a3aab8cc
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 16 Jun 2014 17:21:59 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 19 Jun 2014 16:13:12 -0300

perf trace: Remove needless reassignments

The thread->priv value is already obtained a few lines earlier from the thread__trace() call. Leftovers from before thread__trace().

Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/builtin-trace.c | 3 ---
 1 file changed, 3 deletions(-)
tools/perf/builtin-trace.c +0 -3
index 5ab2f67..28c86e2 100644
@@ -1629,7 +1629,6 @@ static int trace__sys_enter(struct trace *trace, struct perf_evsel *evsel,
 		return -1;
 
 	args = perf_evsel__sc_tp_ptr(evsel, args, sample);
-	ttrace = thread->priv;
 
 	if (ttrace->entry_str == NULL) {
 		ttrace->entry_str = malloc(1024);
@@ -1687,8 +1686,6 @@ static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,
 		++trace->stats.vfs_getname;
 	}
 
-	ttrace = thread->priv;
-
 	ttrace->exit_time = sample->time;
 
 	if (ttrace->entry_time) {