thermal/drivers/qoriq: Remove redundant msg in qoriq_tmu_register_tmu_zone()
authorYangtao Li <frank.li@vivo.com>
Tue, 20 Jun 2023 09:07:28 +0000 (17:07 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:14 +0000 (12:03 +0200)
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-7-frank.li@vivo.com
drivers/thermal/qoriq_thermal.c

index c710449b0c503c83959851256d5c5496c0e57d04..ccc2eea7f9f548a184646cb38a39068238b978b3 100644 (file)
@@ -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) {