developer | 9349eb3 | 2022-10-20 15:34:47 +0800 | [diff] [blame] | 1 | --- a/drivers/mtd/nand/spi/macronix.c |
2 | +++ b/drivers/mtd/nand/spi/macronix.c | ||||
3 | @@ -86,7 +86,7 @@ static int mx35lf1ge4ab_ecc_get_status(s | ||||
4 | if (mx35lf1ge4ab_get_eccsr(spinand, &eccsr)) | ||||
5 | return nand->eccreq.strength; | ||||
6 | |||||
7 | - if (WARN_ON(eccsr > nand->eccreq.strength || !eccsr)) | ||||
8 | + if (eccsr > nand->eccreq.strength || !eccsr) | ||||
9 | return nand->eccreq.strength; | ||||
10 | |||||
11 | return eccsr; |