Skip to content

Commit e920209

Browse files
Jiapeng Chongdlezcano
authored andcommitted
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=1846 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent f59ac19 commit e920209

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/thermal/qcom/qcom-spmi-adc-tm5.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,10 +1025,8 @@ static int adc_tm5_probe(struct platform_device *pdev)
10251025
adc_tm->base = reg;
10261026

10271027
irq = platform_get_irq(pdev, 0);
1028-
if (irq < 0) {
1029-
dev_err(dev, "get_irq failed: %d\n", irq);
1028+
if (irq < 0)
10301029
return irq;
1031-
}
10321030

10331031
ret = adc_tm5_get_dt_data(adc_tm, node);
10341032
if (ret) {

0 commit comments

Comments
 (0)