developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From 6d8d4dc76ac31cfdecef99c72aad6a65f963d4a0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Fri, 2 Jun 2023 13:06:14 +0800 |
| 4 | Subject: [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 | |
| 11 | diff --git a/drivers/mtd/nand/spi/macronix.c b/drivers/mtd/nand/spi/macronix.c |
| 12 | index 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 | -- |
| 25 | 2.34.1 |
| 26 | |