Commit 598f0046 authored by Li kunyu's avatar Li kunyu Committed by Andrew Morton

kernel: relay: remove unnecessary NULL values from relay_open_buf

buf is assigned first, so it does not need to initialize the assignment.

Link: https://lkml.kernel.org/r/20230713234459.2908-1-kunyu@nfschina.comSigned-off-by: default avatarLi kunyu <kunyu@nfschina.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foudation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 95d1fef5
...@@ -375,7 +375,7 @@ static struct dentry *relay_create_buf_file(struct rchan *chan, ...@@ -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) 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; struct dentry *dentry;
if (chan->is_global) if (chan->is_global)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment