Message ID | 20200622131634.2132717-3-mikhail.kshevetskiy@oktetlabs.ru |
---|---|
State | New |
Headers | show |
Series | [1/4] mtd: spinand: Stop using spinand->oobbuf for buffering bad block markers | expand |
diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index c74a7b5ef3..e0ebd9c04b 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -712,19 +712,10 @@ static int spinand_markbad(struct nand_device *nand, const struct nand_pos *pos) }; int ret; - /* Erase block before marking it bad. */ ret = spinand_select_target(spinand, pos->target); if (ret) return ret; - ret = spinand_write_enable_op(spinand); - if (ret) - return ret; - - ret = spinand_erase_op(spinand, pos); - if (ret) - return ret; - return spinand_write_page(spinand, &req); }