developer | 7c31626 | 2024-02-22 11:01:46 +0800 | [diff] [blame] | 1 | Index: linux-5.4.260/drivers/mtd/nand/spi/macronix.c |
| 2 | =================================================================== |
| 3 | --- linux-5.4.260.orig/drivers/mtd/nand/spi/macronix.c |
| 4 | +++ linux-5.4.260/drivers/mtd/nand/spi/macronix.c |
| 5 | @@ -86,7 +86,7 @@ static int mx35lf1ge4ab_ecc_get_status(s |
developer | 77beb69 | 2023-06-08 11:08:46 +0800 | [diff] [blame] | 6 | if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) |
| 7 | return nand->eccreq.strength; |
| 8 | |
| 9 | - if (WARN_ON(eccsr > nand->eccreq.strength || !eccsr)) |
| 10 | + if (eccsr > nand->eccreq.strength || !eccsr) |
| 11 | return nand->eccreq.strength; |
| 12 | |
| 13 | return eccsr; |