Skip to content

Commit f13582a

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/qoriq: Remove redundant msg in qoriq_tmu_register_tmu_zone()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230620090732.50025-7-frank.li@vivo.com
1 parent 2279e8f commit f13582a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/thermal/qoriq_thermal.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ static int qoriq_tmu_register_tmu_zone(struct device *dev,
163163
else
164164
sites |= 0x1 << id;
165165

166-
if (devm_thermal_add_hwmon_sysfs(dev, tzd))
167-
dev_warn(dev,
168-
"Failed to add hwmon sysfs attributes\n");
166+
devm_thermal_add_hwmon_sysfs(dev, tzd);
169167
}
170168

171169
if (sites) {

0 commit comments

Comments
 (0)