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>
This commit is contained in:
parent
60c1f89241
commit
849fe89ce6
|
@ -175,8 +175,8 @@ static int udf_bitmap_prealloc_blocks(struct super_block *sb,
|
||||||
{
|
{
|
||||||
struct udf_sb_info *sbi = UDF_SB(sb);
|
struct udf_sb_info *sbi = UDF_SB(sb);
|
||||||
int alloc_count = 0;
|
int alloc_count = 0;
|
||||||
int bit, block, block_group, group_start;
|
int bit, block, block_group;
|
||||||
int nr_groups, bitmap_nr;
|
int bitmap_nr;
|
||||||
struct buffer_head *bh;
|
struct buffer_head *bh;
|
||||||
__u32 part_len;
|
__u32 part_len;
|
||||||
|
|
||||||
|
@ -189,10 +189,8 @@ static int udf_bitmap_prealloc_blocks(struct super_block *sb,
|
||||||
block_count = part_len - first_block;
|
block_count = part_len - first_block;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
nr_groups = udf_compute_nr_groups(sb, partition);
|
|
||||||
block = first_block + (sizeof(struct spaceBitmapDesc) << 3);
|
block = first_block + (sizeof(struct spaceBitmapDesc) << 3);
|
||||||
block_group = block >> (sb->s_blocksize_bits + 3);
|
block_group = block >> (sb->s_blocksize_bits + 3);
|
||||||
group_start = block_group ? 0 : sizeof(struct spaceBitmapDesc);
|
|
||||||
|
|
||||||
bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
|
bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
|
||||||
if (bitmap_nr < 0)
|
if (bitmap_nr < 0)
|
||||||
|
|
Loading…
Reference in New Issue