]> Git Repo - J-linux.git/commitdiff
spi: rockchip-sfc: fix platform_get_irq.cocci warning
authorYihao Han <[email protected]>
Thu, 10 Mar 2022 09:48:06 +0000 (01:48 -0800)
committerMark Brown <[email protected]>
Thu, 10 Mar 2022 12:17:56 +0000 (12:17 +0000)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-rockchip-sfc.c

index a46b38544027321e5f9a8b70a3dd778ee3c5d245..bd87d3c92dd335f03c49a7f40b234c61f9cff579 100644 (file)
@@ -624,10 +624,8 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
 
        /* Find the irq */
        ret = platform_get_irq(pdev, 0);
-       if (ret < 0) {
-               dev_err(dev, "Failed to get the irq\n");
+       if (ret < 0)
                goto err_irq;
-       }
 
        ret = devm_request_irq(dev, ret, rockchip_sfc_irq_handler,
                               0, pdev->name, sfc);
This page took 0.057519 seconds and 4 git commands to generate.