udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
@@ -1233,11 +1233,9 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block,
|
|||||||
BUG_ON(ident != TAG_IDENT_LVD);
|
BUG_ON(ident != TAG_IDENT_LVD);
|
||||||
lvd = (struct logicalVolDesc *)bh->b_data;
|
lvd = (struct logicalVolDesc *)bh->b_data;
|
||||||
|
|
||||||
i = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps));
|
ret = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps));
|
||||||
if (i != 0) {
|
if (ret)
|
||||||
ret = i;
|
|
||||||
goto out_bh;
|
goto out_bh;
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0, offset = 0;
|
for (i = 0, offset = 0;
|
||||||
i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength);
|
i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength);
|
||||||
|
Reference in New Issue
Block a user