From: Amit Vadhavana <av2082000@gmail.com>
To: rostedt@goodmis.org, mathieu.desnoyers@efficios.com,
mark.rutland@arm.com, mhiramat@kernel.org, ricardo@marliere.net,
skhan@linuxfoundation.org
Cc: av2082000@gmail.com, linux-kernel-mentees@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Subject: [PATCH] fgraph: Remove unused value
Date: Mon, 21 Oct 2024 21:24:37 +0530 [thread overview]
Message-ID: <20241021155437.5633-1-av2082000@gmail.com> (raw)
The variable `ret` is assigned a value which is unused.
Fix this by removing the redundant `ret = 0;` assignment.
This issue was reported by Coverity Scan.
Report:
CID 1600916: (#1 of 1): Unused value (UNUSED_VALUE)
assigned_value: Assigning value 0 to ret here,
but that stored value is overwritten before it can be used.
Signed-off-by: Amit Vadhavana <av2082000@gmail.com>
---
kernel/trace/fgraph.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c
index 06d254edaed7..306f1cb7bba3 100644
--- a/kernel/trace/fgraph.c
+++ b/kernel/trace/fgraph.c
@@ -1302,7 +1302,6 @@ int register_ftrace_graph(struct fgraph_ops *gops)
return ret;
}
fgraph_initialized = true;
- ret = 0;
}
if (!fgraph_array[0]) {
--
2.25.1
reply other threads:[~2024-10-21 15:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241021155437.5633-1-av2082000@gmail.com \
--to=av2082000@gmail.com \
--cc=linux-kernel-mentees@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=ricardo@marliere.net \
--cc=rostedt@goodmis.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox