lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 16 Nov 2021 03:42:53 +0000
From:   cgel.zte@...il.com
To:     peterz@...radead.org
Cc:     mingo@...hat.com, acme@...nel.org, mark.rutland@....com,
        alexander.shishkin@...ux.intel.com, jolsa@...hat.com,
        namhyung@...nel.org, linux-perf-users@...r.kernel.org,
        linux-kernel@...r.kernel.org, chiminghao <chi.minghao@....com.cn>,
        Zeal Robot <zealci@....com.cn>
Subject: [PATCH] tools:perf: Remove Unneeded variable

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

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

Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: chiminghao <chi.minghao@....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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ