Skip to content

Commit

Permalink
kernel: relay: remove unnecessary NULL values from relay_open_buf
Browse files Browse the repository at this point in the history
buf is assigned first, so it does not need to initialize the assignment.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Li kunyu <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
likunyur authored and akpm00 committed Aug 18, 2023
1 parent 95d1fef commit 598f004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 598f004

Please sign in to comment.