[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230713234459.2908-1-kunyu@nfschina.com>
Date: Fri, 14 Jul 2023 07:44:59 +0800
From: Li kunyu <kunyu@...china.com>
To: akpm@...ux-foundation.org, zhou.kete@....com, rppt@...nel.org,
mgorman@...hsingularity.net, zhao_lei1@...erun.com,
zhang.zhengming@....com, surenb@...gle.com, xu.panda@....com.cn,
wuchi.zero@...il.com, Ilia.Gavrilov@...otecs.ru
Cc: linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] kernel: relay: Remove unnecessary ‘NULL’ values from relay_open_buf
buf is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@...china.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
Powered by blists - more mailing lists