* [PATCH] hwmon: (sfctemp) Simplify error message
@ 2023-04-15 16:23 Christophe JAILLET
2023-04-16 14:39 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2023-04-15 16:23 UTC (permalink / raw)
To: Emil Renner Berthing, Jean Delvare, Guenter Roeck
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-hwmon
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>
---
drivers/hwmon/sfctemp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: (sfctemp) Simplify error message
2023-04-15 16:23 [PATCH] hwmon: (sfctemp) Simplify error message Christophe JAILLET
@ 2023-04-16 14:39 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2023-04-16 14:39 UTC (permalink / raw)
To: Christophe JAILLET
Cc: Emil Renner Berthing, Jean Delvare, linux-kernel,
kernel-janitors, linux-hwmon
On Sat, Apr 15, 2023 at 06:23:37PM +0200, Christophe JAILLET wrote:
> 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>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-16 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-15 16:23 [PATCH] hwmon: (sfctemp) Simplify error message Christophe JAILLET
2023-04-16 14:39 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®