lkml.org 
[lkml]   [2021]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fixup! mtd: rawnand: nand_bbt: Skip bad blocks when searching for the BBT in NAND
Date
Fix helper parameter alignment.

Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
---
Hi Miquel,

sorry, I forgot to realign the parameters. Here's a fixup for that. Hope
it's ok this way.

Regards,
Stefan

---
drivers/mtd/nand/raw/nand_bbt.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c
index 2a30714350ee..b7ad030225f8 100644
--- a/drivers/mtd/nand/raw/nand_bbt.c
+++ b/drivers/mtd/nand/raw/nand_bbt.c
@@ -448,9 +448,8 @@ static int scan_block_fast(struct nand_chip *this, struct nand_bbt_descr *bd,
}

/* Check if a potential BBT block is marked as bad */
-static int bbt_block_checkbad(struct nand_chip *this,
- struct nand_bbt_descr *td,
- loff_t offs, uint8_t *buf)
+static int bbt_block_checkbad(struct nand_chip *this, struct nand_bbt_descr *td,
+ loff_t offs, uint8_t *buf)
{
struct nand_bbt_descr *bd = this->badblock_pattern;

--
2.25.1
\
 
 \ /
  Last update: 2021-07-07 10:23    [W:0.070 / U:1.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site