]> 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, 28 Sep 2012 00:18:53 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 5 Oct 2012 04:00:40 +0000 (14:00 +1000)
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) */