Skip to content

Commit fb23f23

Browse files
tititiou36groeck
authored andcommitted
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>
1 parent 1680796 commit fb23f23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/sfctemp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static int sfctemp_probe(struct platform_device *pdev)
303303

304304
ret = sfctemp_enable(sfctemp);
305305
if (ret)
306-
return dev_err_probe(dev, ret, "error enabling temperature sensor: %d\n", ret);
306+
return dev_err_probe(dev, ret, "error enabling temperature sensor\n");
307307

308308
hwmon_dev = devm_hwmon_device_register_with_info(dev, "sfctemp", sfctemp,
309309
&sfctemp_chip_info, NULL);

0 commit comments

Comments
 (0)