blob: e21b09718bbddef7697861b40fd65b97c685415a [file] [log] [blame]
developer7c316262024-02-22 11:01:46 +08001Index: 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
developer77beb692023-06-08 11:08:46 +08006 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;