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

[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
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -779,10 +779,8 @@ static void rfd_ftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
	else {
		if (!mtd->erasesize) {
			printk(KERN_WARNING PREFIX "please provide block_size");
			kfree(part);
			return;
		}
		else
			goto out;
		} else
			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))
			return;
	}

out:
	kfree(part);
}