Commit 030f9e13 authored by akpm@linux-foundation.org's avatar akpm@linux-foundation.org Committed by David Woodhouse

[MTD] Remove embedded return in RFD FTL.

embedded returns are evil.
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 10506434
...@@ -779,10 +779,8 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) ...@@ -779,10 +779,8 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
else { else {
if (!mtd->erasesize) { if (!mtd->erasesize) {
printk(KERN_WARNING PREFIX "please provide block_size"); printk(KERN_WARNING PREFIX "please provide block_size");
kfree(part); goto out;
return; } else
}
else
part->block_size = mtd->erasesize; part->block_size = mtd->erasesize;
} }
...@@ -804,7 +802,7 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) ...@@ -804,7 +802,7 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
if (!add_mtd_blktrans_dev((void*)part)) if (!add_mtd_blktrans_dev((void*)part))
return; return;
} }
out:
kfree(part); kfree(part);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment