Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe JAILLET and committed by
Guenter Roeck
fb23f230 1680796b

+1 -1
+1 -1
drivers/hwmon/sfctemp.c
··· 303 303 304 304 ret = sfctemp_enable(sfctemp); 305 305 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"); 307 307 308 308 hwmon_dev = devm_hwmon_device_register_with_info(dev, "sfctemp", sfctemp, 309 309 &sfctemp_chip_info, NULL);