udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()
authorJan Kara <jack@suse.cz>
Wed, 27 Jun 2012 18:08:44 +0000 (20:08 +0200)
committerJan Kara <jack@suse.cz>
Thu, 28 Jun 2012 17:30:40 +0000 (19:30 +0200)
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c

index ac8a348dcb693bb10a24a930346b82bc7db799f9..9da6f4ee112c8b46044806002d29f49964313cc3 100644 (file)
@@ -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);