From: Yangtao Li Date: Tue, 20 Jun 2023 09:07:31 +0000 (+0800) Subject: thermal/drivers/mediatek/lvts_thermal: Remove redundant msg in lvts_ctrl_start() X-Git-Tag: block-6.5-2023-07-03~49^2^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=27cc5be110fe76666bb1902d473b302dd09b6cbb;p=linux-block.git 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 Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230620090732.50025-10-frank.li@vivo.com --- diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index 1e11defe4f35..b693fac2d677 100644 --- a/drivers/thermal/mediatek/lvts_thermal.c +++ b/drivers/thermal/mediatek/lvts_thermal.c @@ -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