projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f66c679
)
udf: Use 'ret' instead of abusing 'i' in udf_load_logicalvol()
author
Jan Kara
<jack@suse.cz>
Wed, 27 Jun 2012 18:08:44 +0000
(20:08 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:38 +0000
(08:47 -0700)
commit
cb14d340ef1737c24125dd663eff77734a482d47
upstream.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/udf/super.c
patch
|
blob
|
history
diff --git
a/fs/udf/super.c
b/fs/udf/super.c
index 7f0e18aa25d4484fd42c78f4edef001056e1c74f..0bb6a6ded087720c665c7d14e9de45c72d1f610d 100644
(file)
--- 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,
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);