Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7dd2517c authored by Yan Hong's avatar Yan Hong Committed by Greg Kroah-Hartman
Browse files

fs/debugsfs: remove unnecessary inode->i_private initialization



inode->i_private is promised to be NULL on allocation, no need to set it
explicitly.

Signed-off-by: default avatarYan Hong <clouds.yan@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d6ff8551
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@ static struct inode *debugfs_get_inode(struct super_block *sb, umode_t mode, dev
		case S_IFDIR:
			inode->i_op = &simple_dir_inode_operations;
			inode->i_fop = &simple_dir_operations;
			inode->i_private = NULL;

			/* directory inodes start off with i_nlink == 2
			 * (for "." entry) */