aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-05-09 10:28:41 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-05-09 10:28:41 -0400
commit55ff3840a293923daacc880cf4aed30c3c49f754 (patch)
treea6ff7d177ff6b2e1f58d63560cc9323f789f53a1 /fs/ext4/super.c
parent00d098822fe215a2f4fd32f244a9055b0b043bfe (diff)
ext4: remove redundant check for first_not_zeroed in ext4_register_li_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>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index cb22783a4377..c22926eab5dc 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2981,15 +2981,8 @@ static int ext4_register_li_request(struct super_block *sb,
2981 2981
2982 if (first_not_zeroed == ngroups || 2982 if (first_not_zeroed == ngroups ||
2983 (sb->s_flags & MS_RDONLY) || 2983 (sb->s_flags & MS_RDONLY) ||
2984 !test_opt(sb, INIT_INODE_TABLE)) { 2984 !test_opt(sb, INIT_INODE_TABLE))
2985 sbi->s_li_request = NULL;
2986 return 0; 2985 return 0;
2987 }
2988
2989 if (first_not_zeroed == ngroups) {
2990 sbi->s_li_request = NULL;
2991 return 0;
2992 }
2993 2986
2994 elr = ext4_li_request_new(sb, first_not_zeroed); 2987 elr = ext4_li_request_new(sb, first_not_zeroed);
2995 if (!elr) 2988 if (!elr)