Remove duplicated codes in sanity_check_raw_super().

Signed-off-by: Junling Zheng <zhengjunl...@huawei.com>
---
 fsck/mount.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fsck/mount.c b/fsck/mount.c
index 4bde179..f866c4f 100644
--- a/fsck/mount.c
+++ b/fsck/mount.c
@@ -376,10 +376,6 @@ int sanity_check_raw_super(struct f2fs_super_block *sb, 
u64 offset)
        if (get_sb(log_blocks_per_seg) != 9)
                return -1;
 
-       if (get_sb(log_sectorsize) > F2FS_MAX_LOG_SECTOR_SIZE ||
-                       get_sb(log_sectorsize) < F2FS_MIN_LOG_SECTOR_SIZE)
-               return -1;
-
        /* Currently, support 512/1024/2048/4096 bytes sector size */
        if (get_sb(log_sectorsize) > F2FS_MAX_LOG_SECTOR_SIZE ||
                        get_sb(log_sectorsize) < F2FS_MIN_LOG_SECTOR_SIZE)
-- 
1.9.1


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to