summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Xiang <liu.xiang6@zte.com.cn>2019-01-15 22:10:43 +0800
committerJan Kara <jack@suse.cz>2019-01-22 11:38:20 +0100
commitf6f5014a1d2c236231358b387d371faddd2ba13c (patch)
treec0ba790e4f81b0f0d445a493508a5e1ce0c1223c
parent6a03e6a8dcf573dcb1621b50d6bfd2e1fa2bd8c0 (diff)
downloadlinux-f6f5014a1d2c236231358b387d371faddd2ba13c.tar.bz2
ext2: Remove redundant check on s_inode_size
The case of (EXT2_INODE_SIZE(sb) == 0) is included in (sbi->s_inode_size < EXT2_GOOD_OLD_INODE_SIZE). So there is no need to check again. Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn> Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--fs/ext2/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index b6d8402f5c62..133012e46155 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -1024,8 +1024,6 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
sbi->s_frags_per_group = le32_to_cpu(es->s_frags_per_group);
sbi->s_inodes_per_group = le32_to_cpu(es->s_inodes_per_group);
- if (EXT2_INODE_SIZE(sb) == 0)
- goto cantfind_ext2;
sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb);
if (sbi->s_inodes_per_block == 0 || sbi->s_inodes_per_group == 0)
goto cantfind_ext2;