Skip to content

Commit 7c673ef

Browse files
bbkzzdlezcano
authored andcommitted
drivers/thermal/k3: Remove redundant msg in k3_bandgap_probe()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b0526e0 commit 7c673ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/k3_bandgap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ static int k3_bandgap_probe(struct platform_device *pdev)
222222
goto err_alloc;
223223
}
224224

225-
if (devm_thermal_add_hwmon_sysfs(dev, data[id].tzd))
226-
dev_warn(dev, "Failed to add hwmon sysfs attributes\n");
225+
devm_thermal_add_hwmon_sysfs(dev, data[id].tzd);
227226
}
228227

229228
platform_set_drvdata(pdev, bgp);

0 commit comments

Comments
 (0)