From f13582a42de70e5acf72c6ccd2b1472fb764d1d9 Mon Sep 17 00:00:00 2001 From: Yangtao Li Date: Tue, 20 Jun 2023 17:07:28 +0800 Subject: [PATCH] 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 --- drivers/thermal/qoriq_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index c710449b0c503..ccc2eea7f9f54 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) { -- 2.30.2