* [linux-safety] [PATCH v2] kernel: trace: Remove unneeded initialization in trace_uprobe.c
@ 2020-12-10 10:30 Milan Lakhani
0 siblings, 0 replies; only message in thread
From: Milan Lakhani @ 2020-12-10 10:30 UTC (permalink / raw)
To: linux-kernel, linux-safety, devel, rostedt, mingo, gregkh
Cc: Milan Lakhani, lukas.bulwahn
In trace_uprobe.c, trace_uprobe_create assigns ret to 0 but then never
uses this value.
CC: lukas.bulwahn@gmail.com
Signed-off-by: Milan Lakhani <milan.lakhani@codethink.co.uk>
---
kernel/trace/trace_uprobe.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index 3cf7128..c7c7070 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -541,7 +541,6 @@ static int trace_uprobe_create(int argc, const char **argv)
bool is_return = false;
int i, ret;
- ret = 0;
ref_ctr_offset = 0;
switch (argv[0][0]) {
--
2.7.4
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#219): https://lists.elisa.tech/g/linux-safety/message/219
Mute This Topic: https://lists.elisa.tech/mt/78851477/5278000
Group Owner: linux-safety+owner@lists.elisa.tech
Unsubscribe: https://lists.elisa.tech/g/linux-safety/unsub [linux-safety@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-10 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 10:30 [linux-safety] [PATCH v2] kernel: trace: Remove unneeded initialization in trace_uprobe.c Milan Lakhani
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).