From: Li kunyu <kunyu@nfschina.com>
To: akpm@linux-foundation.org, zhou.kete@h3c.com, rppt@kernel.org,
mgorman@techsingularity.net, zhao_lei1@hoperun.com,
zhang.zhengming@h3c.com, surenb@google.com, xu.panda@zte.com.cn,
wuchi.zero@gmail.com, Ilia.Gavrilov@infotecs.ru
Cc: linux-kernel@vger.kernel.org, Li kunyu <kunyu@nfschina.com>
Subject: [PATCH] kernel: relay: Remove unnecessary ‘NULL’ values from relay_open_buf
Date: Fri, 14 Jul 2023 07:44:59 +0800 [thread overview]
Message-ID: <20230713234459.2908-1-kunyu@nfschina.com> (raw)
buf is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
kernel/relay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/relay.c b/kernel/relay.c
index a80fa01042e9..83fe0325cde1 100644
--- a/kernel/relay.c
+++ b/kernel/relay.c
@@ -375,7 +375,7 @@ static struct dentry *relay_create_buf_file(struct rchan *chan,
*/
static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu)
{
- struct rchan_buf *buf = NULL;
+ struct rchan_buf *buf;
struct dentry *dentry;
if (chan->is_global)
--
2.18.2
reply other threads:[~2023-07-12 7:14 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=20230713234459.2908-1-kunyu@nfschina.com \
--to=kunyu@nfschina.com \
--cc=Ilia.Gavrilov@infotecs.ru \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@techsingularity.net \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=wuchi.zero@gmail.com \
--cc=xu.panda@zte.com.cn \
--cc=zhang.zhengming@h3c.com \
--cc=zhao_lei1@hoperun.com \
--cc=zhou.kete@h3c.com \
/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
all inboxes | Powered by JetHome®