Skip to content

Commit e9b1de7

Browse files
Chen Jiahaodlezcano
authored andcommitted
thermal/drivers/mediatek: Clean up redundant dev_err_probe()
Referring to platform_get_irq()'s definition, the return value has already been checked if ret < 0, and printed via dev_err_probe(). Calling dev_err_probe() one more time outside platform_get_irq() is obviously redundant. Removing dev_err_probe() outside platform_get_irq() to clean up above problem. Signed-off-by: Chen Jiahao <chenjiahao16@huawei.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230802094527.988842-1-chenjiahao16@huawei.com
1 parent c51592a commit e9b1de7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ static int lvts_probe(struct platform_device *pdev)
12161216

12171217
irq = platform_get_irq(pdev, 0);
12181218
if (irq < 0)
1219-
return dev_err_probe(dev, irq, "No irq resource\n");
1219+
return irq;
12201220

12211221
ret = lvts_domain_init(dev, lvts_td, lvts_data);
12221222
if (ret)

0 commit comments

Comments
 (0)