提交 e9202098 编写于 作者: J Jiapeng Chong 提交者: Daniel Lezcano

thermal/drivers/qcom/spmi-adc-tm5: Remove unnecessary print function dev_err()

The print function dev_err() is redundant because platform_get_irq()
already prints an error.

./drivers/thermal/qcom/qcom-spmi-adc-tm5.c:1029:2-9: line 1029 is redundant because platform_get_irq() already prints an error.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1846Reported-by: NAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220809034346.128607-1-jiapeng.chong@linux.alibaba.comSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
上级 f59ac19b
...@@ -1025,10 +1025,8 @@ static int adc_tm5_probe(struct platform_device *pdev) ...@@ -1025,10 +1025,8 @@ static int adc_tm5_probe(struct platform_device *pdev)
adc_tm->base = reg; adc_tm->base = reg;
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(dev, "get_irq failed: %d\n", irq);
return irq; return irq;
}
ret = adc_tm5_get_dt_data(adc_tm, node); ret = adc_tm5_get_dt_data(adc_tm, node);
if (ret) { if (ret) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册