From: Yangtao Li Date: Tue, 20 Jun 2023 09:07:28 +0000 (+0800) Subject: thermal/drivers/qoriq: Remove redundant msg in qoriq_tmu_register_tmu_zone() X-Git-Tag: v6.6.17~4603^2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f13582a42de70e5acf72c6ccd2b1472fb764d1d9;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230620090732.50025-7-frank.li@vivo.com --- diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index c710449..ccc2eea 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -163,9 +163,7 @@ static int qoriq_tmu_register_tmu_zone(struct device *dev, else sites |= 0x1 << id; - if (devm_thermal_add_hwmon_sysfs(dev, tzd)) - dev_warn(dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(dev, tzd); } if (sites) {