mtd: nand_bbt: Move BBT block selection logic out of write_bbt()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 15 Aug 2016 23:22:01 +0000 (18:22 -0500)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commitc3baf278d3bf8d628df0b28aa4921c5457d40211
tree114a342f131c90b268b03da8edd9dd3e70dffc2a
parent57d419a42c501713fd023bc21f8798c14ad4e005
mtd: nand_bbt: Move BBT block selection logic out of write_bbt()

This clarifies the write_bbt() function by removing the write label
and simplifying the error/exit path.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Kyle Roeschley <kyle.roeschley@ni.com>
drivers/mtd/nand/nand_bbt.c