summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/rockchip_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/rockchip_thermal.c
parentthermal: Remove thermal_zone_device_update() stub (diff)
downloadlinux-8cb775bb005c568857ba7909a1c5a297ed4c33ee.tar.xz
linux-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/rockchip_thermal.c')
-rw-r--r--drivers/thermal/rockchip_thermal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index 7c1a8bccdcba..15a71ecc916c 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -1241,10 +1241,8 @@ static int rockchip_thermal_probe(struct platform_device *pdev)
return -ENXIO;
irq = platform_get_irq(pdev, 0);
- if (irq < 0) {
- dev_err(&pdev->dev, "no irq resource?\n");
+ if (irq < 0)
return -EINVAL;
- }
thermal = devm_kzalloc(&pdev->dev, sizeof(struct rockchip_thermal_data),
GFP_KERNEL);