Skip to content

Commit c685877

Browse files
Kuwano-sanmiquelraynal
authored andcommitted
mtd: spinand: Remove write_enable_op() in markbad()
We don't have to call spinand_write_enable_op() in spinand_markbad() as it is called in spinand_write_page(). Fixes: b645ad3 ("mtd: spinand: Do not erase the block before writing a bad block marker") Signed-off-by: Takahiro Kuwano <[email protected]> Reviewed-by: Tudor Ambarus <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 70a71f8 commit c685877

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/mtd/nand/spi/core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -942,10 +942,6 @@ static int spinand_markbad(struct nand_device *nand, const struct nand_pos *pos)
942942
if (ret)
943943
return ret;
944944

945-
ret = spinand_write_enable_op(spinand);
946-
if (ret)
947-
return ret;
948-
949945
return spinand_write_page(spinand, &req);
950946
}
951947

0 commit comments

Comments
 (0)