blob: b19492b82d70354f10fd357308d32e442ed1c842 [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From 6d8d4dc76ac31cfdecef99c72aad6a65f963d4a0 Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:14 +0800
4Subject: [PATCH]
5 [spi-and-storage][999-2331-mtd-spinand-macronix-suppress-mx35lf1ge4ab-warning-log.patch]
6
7---
8 drivers/mtd/nand/spi/macronix.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c
12index 25319b4f8..d3ae24ecc 100644
13--- a/drivers/mtd/nand/spi/macronix.c
14+++ b/drivers/mtd/nand/spi/macronix.c
15@@ -86,7 +86,7 @@ static int mx35lf1ge4ab_ecc_get_status(struct spinand_device *spinand,
16 if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr))
17 return nand->eccreq.strength;
18
19- if (WARN_ON(eccsr > nand->eccreq.strength || !eccsr))
20+ if (eccsr > nand->eccreq.strength || !eccsr)
21 return nand->eccreq.strength;
22
23 return eccsr;
24--
252.34.1
26