summaryrefslogtreecommitdiff
path: root/drivers/thermal/st/stm_thermal.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2020-04-05 18:35:16 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-04-14 11:41:12 +0200
commit8cb775bb005c568857ba7909a1c5a297ed4c33ee (patch)
treed5bfabfc763bbadf4bf372617e0e0e4ef7725ec8 /drivers/thermal/st/stm_thermal.c
parent0145f67866b71e8c1da3c1d9412623db7ba8a0c8 (diff)
downloadlwn-8cb775bb005c568857ba7909a1c5a297ed4c33ee.tar.gz
lwn-8cb775bb005c568857ba7909a1c5a297ed4c33ee.zip
thermal: Delete an error message in four functions
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> Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Reviewed-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/05f49ae7-5cc7-d6a0-fc3d-abaf2a0b373c@web.de
Diffstat (limited to 'drivers/thermal/st/stm_thermal.c')
-rw-r--r--drivers/thermal/st/stm_thermal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c
index 9314e3df6a42..331e2b768df5 100644
--- a/drivers/thermal/st/stm_thermal.c
+++ b/drivers/thermal/st/stm_thermal.c
@@ -385,10 +385,8 @@ static int stm_register_irq(struct stm_thermal_sensor *sensor)
int ret;
sensor->irq = platform_get_irq(pdev, 0);
- if (sensor->irq < 0) {
- dev_err(dev, "%s: Unable to find IRQ\n", __func__);
+ if (sensor->irq < 0)
return sensor->irq;
- }
ret = devm_request_threaded_irq(dev, sensor->irq,
NULL,