Skip to content

Commit 27cc5be

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/mediatek/lvts_thermal: Remove redundant msg in lvts_ctrl_start()
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 7adbbb3 commit 27cc5be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device *dev, struct lvts_ctrl *lvts_ctrl)
998998
return PTR_ERR(tz);
999999
}
10001000

1001-
if (devm_thermal_add_hwmon_sysfs(dev, tz))
1002-
dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id);
1001+
devm_thermal_add_hwmon_sysfs(dev, tz);
10031002

10041003
/*
10051004
* The thermal zone pointer will be needed in the

0 commit comments

Comments
 (0)