aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-fsl-ftm-alarm.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2020-04-05 17:30:15 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-04-15 09:56:17 +0200
commit944ed452eb1b4241c8bd693b8b689fe8b888c445 (patch)
tree5ef34fd060de1c3448a73d741019ab3bd928258e /drivers/rtc/rtc-fsl-ftm-alarm.c
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlinux-944ed452eb1b4241c8bd693b8b689fe8b888c445.tar.gz
rtc: remove unnecessary error message after platform_get_irq
The function “platform_get_irq” can log an error already. Thus omit redundant messages for the exception handling in the calling functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Acked-by: Vladimir Zapolskiy <vz@mleia.com> Link: https://lore.kernel.org/r/04116352-b464-041c-1939-96440133aa6f@web.de Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-fsl-ftm-alarm.c')
-rw-r--r--drivers/rtc/rtc-fsl-ftm-alarm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl-ftm-alarm.c
index 756af62b0486c..23c811da48014 100644
--- a/drivers/rtc/rtc-fsl-ftm-alarm.c
+++ b/drivers/rtc/rtc-fsl-ftm-alarm.c
@@ -268,10 +268,8 @@ static int ftm_rtc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(&pdev->dev, "can't get irq number\n");
+ if (irq < 0)
return irq;
- }
ret = devm_request_irq(&pdev->dev, irq, ftm_rtc_alarm_interrupt,
IRQF_NO_SUSPEND, dev_name(&pdev->dev), rtc);