Skip to content

Commit 07130d1

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/sun8i: Remove redundant msg in sun8i_ths_register()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8416ecf commit 07130d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/thermal/sun8i_thermal.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,7 @@ static int sun8i_ths_register(struct ths_device *tmdev)
468468
if (IS_ERR(tmdev->sensor[i].tzd))
469469
return PTR_ERR(tmdev->sensor[i].tzd);
470470

471-
if (devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd))
472-
dev_warn(tmdev->dev,
473-
"Failed to add hwmon sysfs attributes\n");
471+
devm_thermal_add_hwmon_sysfs(tmdev->dev, tmdev->sensor[i].tzd);
474472
}
475473

476474
return 0;

0 commit comments

Comments
 (0)