Whamcloud - gitweb
Try to use secure_getenv() in preference to __secure_getenv()
[tools/e2fsprogs.git] / lib / ext2fs / check_desc.c
index da86964..a6fcc45 100644 (file)
@@ -9,6 +9,7 @@
  * %End-Header%
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
 #if HAVE_UNISTD_H
@@ -53,8 +54,6 @@ errcode_t ext2fs_check_desc(ext2_filsys fs)
                                               EXT4_FEATURE_INCOMPAT_FLEX_BG)) {
                        first_block = ext2fs_group_first_block2(fs, i);
                        last_block = ext2fs_group_last_block2(fs, i);
-                       if (i == (fs->group_desc_count - 1))
-                               last_block = ext2fs_blocks_count(fs->super)-1;
                }
 
                /*