Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal/drivers/u8500: 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/thermal/db8500_thermal.c:162:2-9: line 162 is redundant because platform_get_irq() already prints an error
./drivers/thermal/db8500_thermal.c:176:2-9: line 176 is redundant because platform_get_irq() already prints an error

Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220719003556.74460-1-yang.lee@linux.alibaba.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Yang Li and committed by
Daniel Lezcano
8cf18eea 8f5a9371

+2 -6
+2 -6
drivers/thermal/db8500_thermal.c
··· 158 158 return -ENOMEM; 159 159 160 160 low_irq = platform_get_irq_byname(pdev, "IRQ_HOTMON_LOW"); 161 - if (low_irq < 0) { 162 - dev_err(dev, "Get IRQ_HOTMON_LOW failed\n"); 161 + if (low_irq < 0) 163 162 return low_irq; 164 - } 165 163 166 164 ret = devm_request_threaded_irq(dev, low_irq, NULL, 167 165 prcmu_low_irq_handler, IRQF_NO_SUSPEND | IRQF_ONESHOT, ··· 170 172 } 171 173 172 174 high_irq = platform_get_irq_byname(pdev, "IRQ_HOTMON_HIGH"); 173 - if (high_irq < 0) { 174 - dev_err(dev, "Get IRQ_HOTMON_HIGH failed\n"); 175 + if (high_irq < 0) 175 176 return high_irq; 176 - } 177 177 178 178 ret = devm_request_threaded_irq(dev, high_irq, NULL, 179 179 prcmu_high_irq_handler, IRQF_NO_SUSPEND | IRQF_ONESHOT,