Skip to content

Commit

Permalink
thermal/drivers/mediatek/lvts_thermal: Remove redundant msg in lvts_c…
Browse files Browse the repository at this point in the history
…trl_start()

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-10-frank.li@vivo.com
  • Loading branch information
Yangtao Li authored and Daniel Lezcano committed Jun 26, 2023
1 parent 7adbbb3 commit 27cc5be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/thermal/mediatek/lvts_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device *dev, struct lvts_ctrl *lvts_ctrl)
return PTR_ERR(tz);
}

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

/*
* The thermal zone pointer will be needed in the
Expand Down

0 comments on commit 27cc5be

Please sign in to comment.