summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-04-15 19:23:37 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 17:08:40 +0300
commitfb23f23096471f915bf9745fa297c366e03ee579 (patch)
tree9857acda9f0ffec23eb7fc4633c41d4c12155ffe /drivers/hwmon
parent1680796b21c33cc13f413f8c39640b594092a3a4 (diff)
downloadlinux-fb23f23096471f915bf9745fa297c366e03ee579.tar.xz
hwmon: (sfctemp) Simplify error message
dev_err_probe() already display the error code. There is no need to duplicate it explicitly in the error message. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/f32a6e877f399e11ca130476002f85c2b48ba7ec.1681575790.git.christophe.jaillet@wanadoo.fr Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/sfctemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/sfctemp.c b/drivers/hwmon/sfctemp.c
index d7484e2b8100..fb1da93383d7 100644
--- a/drivers/hwmon/sfctemp.c
+++ b/drivers/hwmon/sfctemp.c
@@ -303,7 +303,7 @@ static int sfctemp_probe(struct platform_device *pdev)
ret = sfctemp_enable(sfctemp);
if (ret)
- return dev_err_probe(dev, ret, "error enabling temperature sensor: %d\n", ret);
+ return dev_err_probe(dev, ret, "error enabling temperature sensor\n");
hwmon_dev = devm_hwmon_device_register_with_info(dev, "sfctemp", sfctemp,
&sfctemp_chip_info, NULL);