[PATCH] mmc: rockchip_sdhci: Correct error checking

2022-03-22 Thread li . haolin
From: Haolin Li A pointer can not be negative. Use macro IS_ERR_OR_NULL() for checking. Signed-off-by: Haolin Li --- drivers/mmc/rockchip_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index f3f9d83ba3..a4

[PATCH] net: phy: dp83867: Fix a never true comparison

2022-03-19 Thread li . haolin
From: Haolin Li The type of the return value of phy_read() and phy_read_mmd() is int. Change the variable to not be unsigned so that we not get into an unsigned compared against 0. Signed-off-by: Haolin Li --- drivers/net/phy/dp83867.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(

[PATCH] spi: mxc_spi: remove redundant code in spi_xchg_single()

2021-11-06 Thread li . haolin
From: Haolin Li The value of cnt is overwritten without being used. Signed-off-by: Haolin Li --- drivers/spi/mxc_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index 3c53de165d..5adfdf8b5f 100644 --- a/drivers/spi/mxc_spi.c +++ b/driver

[PATCH] mtd: spinand: macronix: Fix ECC Status Read

2021-09-05 Thread li . haolin
From: Haolin Li According to datasheet, the upper four bits are reserved or used for reflecting the ECC status of the accumulated pages. The error bits number for the worst segment of the current page is encoded on lower four bits. Fix it by masking the upper bits. This same issue has been alrea

[PATCH] mtd: nand: Fix typo in MXC Kconfig symbol description

2021-07-17 Thread li . haolin
From: Haolin Li Trivial typo fix. Signed-off-by: Haolin Li --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index a901ce5511..6421e05da1 100644 --- a/drivers/mtd/nand/raw/Kconfig +++