diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-04-22 04:32:42 +0800 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-05-02 09:24:41 +0200 |
commit | e715d4459485377273c085d30992b8f9d70eede0 (patch) | |
tree | de567f86e6960bc7ffb4adbb64354a98a8d156d2 | |
parent | 704fd176204577459beadb37d46e164d376fabc3 (diff) |
can: ctucanfd: ctucan_platform_probe(): remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq()
already prints an error.
Eliminate the follow coccicheck warnings:
| drivers/net/can/ctucanfd/ctucanfd_platform.c:67:2-9:
| line 67 is redundant because platform_get_irq() already prints an error.
Link: https://lore.kernel.org/all/20220421203242.7335-1-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Pave Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | drivers/net/can/ctucanfd/ctucanfd_platform.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/ctucanfd/ctucanfd_platform.c b/drivers/net/can/ctucanfd/ctucanfd_platform.c index 5e4806068662..89d54c2151e1 100644 --- a/drivers/net/can/ctucanfd/ctucanfd_platform.c +++ b/drivers/net/can/ctucanfd/ctucanfd_platform.c @@ -64,7 +64,6 @@ static int ctucan_platform_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "Cannot find interrupt.\n"); ret = irq; goto err; } |