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 <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2279e8f commit f13582a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)