[MTD] Remove embedded return in RFD FTL.
embedded returns are evil. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
committed by
David Woodhouse
parent
1050643431
commit
030f9e13be
@@ -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)
|
|||||||
if (!add_mtd_blktrans_dev((void*)part))
|
if (!add_mtd_blktrans_dev((void*)part))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
out:
|
||||||
kfree(part);
|
kfree(part);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user