Skip to content

Commit cb14d34

Browse files
committed
udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()
Signed-off-by: Jan Kara <jack@suse.cz>
1 parent a01ee16 commit cb14d34

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎fs/udf/super.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,11 +1233,9 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block,
12331233
BUG_ON(ident != TAG_IDENT_LVD);
12341234
lvd = (struct logicalVolDesc *)bh->b_data;
12351235

1236-
i = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps));
1237-
if (i != 0) {
1238-
ret = i;
1236+
ret = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps));
1237+
if (ret)
12391238
goto out_bh;
1240-
}
12411239

12421240
for (i = 0, offset = 0;
12431241
i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength);

0 commit comments

Comments
 (0)