[PATCH] mtd: rawnand: rockchip: fix platform_get_irq.cocci warning

Yihao Han posted 1 patch 4 years, 3 months ago
drivers/mtd/nand/raw/rockchip-nand-controller.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] mtd: rawnand: rockchip: fix platform_get_irq.cocci warning
Posted by Yihao Han 4 years, 3 months ago
Remove dev_err() messages after platform_get_irq*() failures.
platform_get_irq() already prints an error.

Generated by: scripts/coccinelle/api/platform_get_irq.cocci

Signed-off-by: Yihao Han <hanyihao@vivo.com>
---
 drivers/mtd/nand/raw/rockchip-nand-controller.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/rockchip-nand-controller.c b/drivers/mtd/nand/raw/rockchip-nand-controller.c
index b5405bc7ca3a..cbaa4f1c83da 100644
--- a/drivers/mtd/nand/raw/rockchip-nand-controller.c
+++ b/drivers/mtd/nand/raw/rockchip-nand-controller.c
@@ -1403,7 +1403,6 @@ static int rk_nfc_probe(struct platform_device *pdev)
 
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
-		dev_err(dev, "no NFC irq resource\n");
 		ret = -EINVAL;
 		goto clk_disable;
 	}
-- 
2.17.1
Re: [PATCH] mtd: rawnand: rockchip: fix platform_get_irq.cocci warning
Posted by Miquel Raynal 4 years, 3 months ago
On Thu, 2022-03-03 at 12:34:27 UTC, Yihao Han wrote:
> Remove dev_err() messages after platform_get_irq*() failures.
> platform_get_irq() already prints an error.
> 
> Generated by: scripts/coccinelle/api/platform_get_irq.cocci
> 
> Signed-off-by: Yihao Han <hanyihao@vivo.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel