summaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/inode.c')
-rw-r--r--e2fsprogs/ext2fs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/ext2fs/inode.c b/e2fsprogs/ext2fs/inode.c
index e50bece..4c386c7 100644
--- a/e2fsprogs/ext2fs/inode.c
+++ b/e2fsprogs/ext2fs/inode.c
@@ -123,7 +123,7 @@ errcode_t ext2fs_open_inode_scan(ext2_filsys fs, int buffer_blocks,
save_get_blocks = fs->get_blocks;
fs->get_blocks = 0;
retval = ext2fs_read_bb_inode(fs, &fs->badblocks);
- if (retval && fs->badblocks) {
+ if (retval) {
ext2fs_badblocks_list_free(fs->badblocks);
fs->badblocks = 0;
}