Skip to content

Commit 2279e8f

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/tegra: Remove redundant msg in tegra_tsensor_register_channel()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7c673ef commit 2279e8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/tegra/tegra30-tsensor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,7 @@ static int tegra_tsensor_register_channel(struct tegra_tsensor *ts,
523523
return 0;
524524
}
525525

526-
if (devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd))
527-
dev_warn(ts->dev, "failed to add hwmon sysfs attributes\n");
526+
devm_thermal_add_hwmon_sysfs(ts->dev, tsc->tzd);
528527

529528
return 0;
530529
}

0 commit comments

Comments
 (0)