projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1680796
)
hwmon: (sfctemp) Simplify error message
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sat, 15 Apr 2023 16:23:37 +0000
(18:23 +0200)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 19 Apr 2023 14:08:40 +0000
(07:08 -0700)
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>
drivers/hwmon/sfctemp.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/sfctemp.c
b/drivers/hwmon/sfctemp.c
index
d7484e2
..
fb1da93
100644
(file)
--- 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);