diff options
author | Yan Hong <clouds.yan@gmail.com> | 2012-11-08 19:10:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-15 20:46:42 -0500 |
commit | 7dd2517c39c1334c9431c0732487e16f752ca09a (patch) | |
tree | 0dd4d8acd21732b24672dcd748aa203338b6fc5b /fs/debugfs | |
parent | d6ff85513d523551177b1564b62d64c864b97d68 (diff) |
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 <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>
Diffstat (limited to 'fs/debugfs')
-rw-r--r-- | fs/debugfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 | |||
59 | case S_IFDIR: | 59 | case S_IFDIR: |
60 | inode->i_op = &simple_dir_inode_operations; | 60 | inode->i_op = &simple_dir_inode_operations; |
61 | inode->i_fop = &simple_dir_operations; | 61 | inode->i_fop = &simple_dir_operations; |
62 | inode->i_private = NULL; | ||
63 | 62 | ||
64 | /* directory inodes start off with i_nlink == 2 | 63 | /* directory inodes start off with i_nlink == 2 |
65 | * (for "." entry) */ | 64 | * (for "." entry) */ |