Skip to content

Commit

Permalink
kernfs: mount: Remove unnecessary ‘NULL’ values from knparent
Browse files Browse the repository at this point in the history
knparent is assigned first, so it does not need to initialize the
assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20240415102009.9926-1-zeming@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Li zeming authored and Greg Kroah-Hartman committed May 4, 2024
1 parent 9bb8e30 commit 75cde4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/kernfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
struct super_block *sb)
{
struct dentry *dentry;
struct kernfs_node *knparent = NULL;
struct kernfs_node *knparent;

BUG_ON(sb->s_op != &kernfs_sops);

Expand Down

0 comments on commit 75cde4e

Please sign in to comment.