Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Jan Kara
849fe89c 60c1f892

+2 -4
+2 -4
fs/udf/balloc.c
··· 175 175 { 176 176 struct udf_sb_info *sbi = UDF_SB(sb); 177 177 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; 180 180 struct buffer_head *bh; 181 181 __u32 part_len; 182 182 ··· 189 189 block_count = part_len - first_block; 190 190 191 191 do { 192 - nr_groups = udf_compute_nr_groups(sb, partition); 193 192 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); 194 193 block_group = block >> (sb->s_blocksize_bits + 3); 195 - group_start = block_group ? 0 : sizeof(struct spaceBitmapDesc); 196 194 197 195 bitmap_nr = load_block_bitmap(sb, bitmap, block_group); 198 196 if (bitmap_nr < 0)