linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools:perf: Remove Unneeded variable
@ 2021-11-16  3:42 cgel.zte
  0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2021-11-16  3:42 UTC (permalink / raw)
  To: peterz
  Cc: mingo, acme, mark.rutland, alexander.shishkin, jolsa, namhyung,
	linux-perf-users, linux-kernel, chiminghao, Zeal Robot

From: chiminghao <chi.minghao@zte.com.cn>

Fix the following coccicheck review:
./tools/perf/builtin-trace.c: Remove Unneeded variable

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: chiminghao <chi.minghao@zte.com.cn>
---
 tools/perf/builtin-trace.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 624ea12ce5ca..4d5106877fcd 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -2967,7 +2967,6 @@ static int trace__process_sample(struct perf_tool *tool,
 {
 	struct trace *trace = container_of(tool, struct trace, tool);
 	struct thread *thread;
-	int err = 0;
 
 	tracepoint_handler handler = evsel->handler;
 
@@ -2983,7 +2982,7 @@ static int trace__process_sample(struct perf_tool *tool,
 	}
 out:
 	thread__put(thread);
-	return err;
+	return 0;
 }
 
 static int trace__record(struct trace *trace, int argc, const char **argv)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-16  5:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16  3:42 [PATCH] tools:perf: Remove Unneeded variable cgel.zte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).