Skip to contentSkip to conversation

tools:perf: Remove Unneeded variable

PATCH New [email protected] 1 participant 1 message Nov 16, 2021 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools:perf: Remove Unneeded variable

From: chiminghao <[email protected]>

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

---
 tools/perf/builtin-trace.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tools/perf/builtin-trace.c +1 -2
index 624ea12ce5ca..4d5106877fcd 100644
@@ -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)
Signature · 1 line
2.25.1