diff options
author | Theodore Ts'o <tytso@mit.edu> | 2018-06-24 21:27:42 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-06-24 21:27:42 -0400 |
commit | 8951fd9f51e969564260e21b835000009b6a2d12 (patch) | |
tree | ed863e9bcaf9d43016b79767b4c841fae47e6109 /resize | |
parent | 5f63e5c4f9c45abafe6ea2ee31b1e85c97bf6ef2 (diff) | |
download | e2fsprogs-8951fd9f51e969564260e21b835000009b6a2d12.tar.gz |
resize: remove calculation of unused variable
Fix-Coverty-Bug: 1398367
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'resize')
-rw-r--r-- | resize/online.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/resize/online.c b/resize/online.c index f0c214b1..2caf946a 100644 --- a/resize/online.c +++ b/resize/online.c @@ -61,7 +61,7 @@ errcode_t online_resize_fs(ext2_filsys fs, const char *mtpt, double percent; dgrp_t i; blk_t size; - int fd, overhead; + int fd; int use_old_ioctl = 1; int no_meta_bg_resize = 0; int no_resize_ioctl = 0; @@ -233,13 +233,6 @@ errcode_t online_resize_fs(ext2_filsys fs, const char *mtpt, for (i = fs->group_desc_count; i < new_fs->group_desc_count; i++) { - - overhead = (int) (2 + new_fs->inode_blocks_per_group); - - if (ext2fs_bg_has_super(new_fs, new_fs->group_desc_count - 1)) - overhead += 1 + new_fs->desc_blocks + - new_fs->super->s_reserved_gdt_blocks; - input.group = i; input.block_bitmap = ext2fs_block_bitmap_loc(new_fs, i); input.inode_bitmap = ext2fs_inode_bitmap_loc(new_fs, i); |