Skip to content

Commit

Permalink
ext4: remove redundant initialization in ext4_fill_super()
Browse files Browse the repository at this point in the history
We use kzalloc() to allocate sbi, no need to zero its field.

Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Guo Chao authored and Theodore Ts'o committed Dec 10, 2012
1 parent a789f49 commit 6b280c9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -3798,7 +3798,6 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)

INIT_LIST_HEAD(&sbi->s_orphan); /* unlinked but open files */
mutex_init(&sbi->s_orphan_lock);
sbi->s_resize_flags = 0;

sb->s_root = NULL;

Expand Down

0 comments on commit 6b280c9

Please sign in to comment.