blob: 7951d63ebf23ca62b61d3f14e812230ba4ff219c [file] [log] [blame]
developer9349eb32022-10-20 15:34:47 +08001--- 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;