]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/debugsfs: remove unnecessary inode->i_private initialization
authorYan Hong <clouds.yan@gmail.com>
Fri, 12 Oct 2012 04:22:50 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 17 Oct 2012 02:06:01 +0000 (13:06 +1100)
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>
fs/debugfs/inode.c

index b607d92cdf2445ab8c1e364a70f939ce21e22c6a..153bb1e42e631e07b41c5d87d82fd660388ed22e 100644 (file)
@@ -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) */