diff options
author | Jan Kara <jack@suse.cz> | 2012-06-27 22:08:44 +0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-06-28 21:30:40 +0400 |
commit | cb14d340ef1737c24125dd663eff77734a482d47 (patch) | |
tree | 982180f8d8e073dcb40d3f2ac6c36b8d5af544f4 /fs/udf | |
parent | a01ee165a132fadb57659d26246e340d6ac53265 (diff) | |
download | linux-cb14d340ef1737c24125dd663eff77734a482d47.tar.xz |
udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/super.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index ac8a348dcb69..9da6f4ee112c 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -1233,11 +1233,9 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block, BUG_ON(ident != TAG_IDENT_LVD); lvd = (struct logicalVolDesc *)bh->b_data; - i = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps)); - if (i != 0) { - ret = i; + ret = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps)); + if (ret) goto out_bh; - } for (i = 0, offset = 0; i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength); |