[PATCH v4 10/11] thermal/drivers/mediatek/lvts_thermal: remove redundant msg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
print error information.

Signed-off-by: Yangtao Li <frank.li@xxxxxxxx>
---
 drivers/thermal/mediatek/lvts_thermal.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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
-- 
2.39.0




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux