Skip to content

Commit

Permalink
ext4: remove redundant check for first_not_zeroed in ext4_register_li…
Browse files Browse the repository at this point in the history
…_request

We have checked first_not_zeroed == ngroups already above, so remove
this redundant check.

sbi->s_li_request = NULL above is also removed since it is NULL
already.

Cc: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Tao Ma authored and Theodore Ts'o committed May 9, 2011
1 parent 00d0988 commit 55ff384
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions fs/ext4/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2981,15 +2981,8 @@ static int ext4_register_li_request(struct super_block *sb,

if (first_not_zeroed == ngroups ||
(sb->s_flags & MS_RDONLY) ||
!test_opt(sb, INIT_INODE_TABLE)) {
sbi->s_li_request = NULL;
!test_opt(sb, INIT_INODE_TABLE))
return 0;
}

if (first_not_zeroed == ngroups) {
sbi->s_li_request = NULL;
return 0;
}

elr = ext4_li_request_new(sb, first_not_zeroed);
if (!elr)
Expand Down

0 comments on commit 55ff384

Please sign in to comment.