mtd: spinand: Assign initial value 0 for bad block marker

This "= { }" smart initial methord is unreliable.

Change-Id: I64860e8d056f44e99461a4fb68bc9b91c7f95732
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin 2020-06-04 20:21:21 +08:00 committed by Jianhong Chen
parent 327380da2b
commit 6193938767
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ static int spinand_mtd_block_isbad(struct mtd_info *mtd, loff_t offs)
static int spinand_markbad(struct nand_device *nand, const struct nand_pos *pos) static int spinand_markbad(struct nand_device *nand, const struct nand_pos *pos)
{ {
struct spinand_device *spinand = nand_to_spinand(nand); struct spinand_device *spinand = nand_to_spinand(nand);
u8 marker[2] = { }; u8 marker[2] = { 0, 0 };
struct nand_page_io_req req = { struct nand_page_io_req req = {
.pos = *pos, .pos = *pos,
.ooboffs = 0, .ooboffs = 0,