diff options
author | Jan Kara <jack@suse.cz> | 2012-06-27 14:08:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 11:47:38 -0400 |
commit | f8db7530c08115356964240e4f9cc90fd112d251 (patch) | |
tree | 6bcfa72796f8761fdddcaa768f1200af36d58e40 | |
parent | f66c6795bdc2dd43b749e90a07c3e1f12caafede (diff) |
udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()
commit cb14d340ef1737c24125dd663eff77734a482d47 upstream.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 7f0e18aa25d..0bb6a6ded08 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -1262,11 +1262,9 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block, | |||
1262 | BUG_ON(ident != TAG_IDENT_LVD); | 1262 | BUG_ON(ident != TAG_IDENT_LVD); |
1263 | lvd = (struct logicalVolDesc *)bh->b_data; | 1263 | lvd = (struct logicalVolDesc *)bh->b_data; |
1264 | 1264 | ||
1265 | i = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps)); | 1265 | ret = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps)); |
1266 | if (i != 0) { | 1266 | if (ret) |
1267 | ret = i; | ||
1268 | goto out_bh; | 1267 | goto out_bh; |
1269 | } | ||
1270 | 1268 | ||
1271 | for (i = 0, offset = 0; | 1269 | for (i = 0, offset = 0; |
1272 | i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength); | 1270 | i < sbi->s_partitions && offset < le32_to_cpu(lvd->mapTableLength); |