From: Yan Hong Date: Fri, 12 Oct 2012 04:22:50 +0000 (+1100) Subject: fs/debugsfs: remove unnecessary inode->i_private initialization X-Git-Tag: next-20121017~2^2~46 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cdf9480c537081d7192c27fab3c8245afde69aa8;p=karo-tx-linux.git 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: Yan Hong Cc: Greg KH Signed-off-by: Andrew Morton --- diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index b607d92cdf24..153bb1e42e63 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -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) */