Skip to content

Commit

Permalink
fs/debugsfs: remove unnecessary inode->i_private initialization
Browse files Browse the repository at this point in the history
inode->i_private is promised to be NULL on allocation, no need to set it
explicitly.

Signed-off-by: Yan Hong <clouds.yan@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
clouds-yan authored and gregkh committed Nov 16, 2012
1 parent d6ff855 commit 7dd2517
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 7dd2517

Please sign in to comment.