linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf tools: Remove redundant variable assignment
@ 2024-11-11  8:27 Luo Yifan
  2024-11-11 17:42 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 8+ messages in thread
From: Luo Yifan @ 2024-11-11  8:27 UTC (permalink / raw)
  To: peterz, mingo, acme, namhyung, mark.rutland, alexander.shishkin,
	jolsa, irogers, adrian.hunter, kan.liang
  Cc: linux-perf-users, linux-kernel, Luo Yifan

This patch makes a minor change that removes the redundant assignment
to the variable ret, simplifying the code.

Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com>
---
 tools/perf/jvmti/jvmti_agent.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/perf/jvmti/jvmti_agent.c b/tools/perf/jvmti/jvmti_agent.c
index 526dcaf9f..751219143 100644
--- a/tools/perf/jvmti/jvmti_agent.c
+++ b/tools/perf/jvmti/jvmti_agent.c
@@ -408,9 +408,7 @@ jvmti_write_code(void *agent, char const *sym,
 
 	funlockfile(fp);
 
-	ret = 0;
-
-	return ret;
+	return 0;
 }
 
 int
-- 
2.27.0




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-11-12  6:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11  8:27 [PATCH] perf tools: Remove redundant variable assignment Luo Yifan
2024-11-11 17:42 ` Arnaldo Carvalho de Melo
2024-11-11 17:51   ` Arnaldo Carvalho de Melo
2024-11-11 17:53     ` Arnaldo Carvalho de Melo
2024-11-12  1:49       ` Luo Yifan
2024-11-12  6:01       ` [PATCH] perf jvmti: Remove unnecessary ret variable in jvmti_write_code Luo Yifan
2024-11-12  6:47         ` Luo Yifan
2024-11-12  6:58           ` [PATCH] perf jvmti: Properly handle return value checks " Luo Yifan

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).