Skip to content

Commit 849fe89

Browse files
Colin Ian Kingjankara
authored andcommitted
udf: remove unused variables group_start and nr_groups
Variables group_start and nr_groups are being assigned but are never used hence they are redundant and can be removed. Cleans up clang warning: variable 'group_start' set but not used [-Wunused-but-set-variable] variable 'nr_groups' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 60c1f89 commit 849fe89

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎fs/udf/balloc.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ static int udf_bitmap_prealloc_blocks(struct super_block *sb,
175175
{
176176
struct udf_sb_info *sbi = UDF_SB(sb);
177177
int alloc_count = 0;
178-
int bit, block, block_group, group_start;
179-
int nr_groups, bitmap_nr;
178+
int bit, block, block_group;
179+
int bitmap_nr;
180180
struct buffer_head *bh;
181181
__u32 part_len;
182182

@@ -189,10 +189,8 @@ static int udf_bitmap_prealloc_blocks(struct super_block *sb,
189189
block_count = part_len - first_block;
190190

191191
do {
192-
nr_groups = udf_compute_nr_groups(sb, partition);
193192
block = first_block + (sizeof(struct spaceBitmapDesc) << 3);
194193
block_group = block >> (sb->s_blocksize_bits + 3);
195-
group_start = block_group ? 0 : sizeof(struct spaceBitmapDesc);
196194

197195
bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
198196
if (bitmap_nr < 0)

0 commit comments

Comments
 (0)