14 lines
420 B
Diff
14 lines
420 B
Diff
Index: lib/sysfs.c
|
|
===================================================================
|
|
--- lib/sysfs.c.orig
|
|
+++ lib/sysfs.c
|
|
@@ -593,7 +593,7 @@ static int sensors_add_hwmon_device(cons
|
|
snprintf(linkpath, NAME_MAX, "%s/device", path);
|
|
dev_len = readlink(linkpath, device, NAME_MAX - 1);
|
|
if (dev_len < 0)
|
|
- return -SENSORS_ERR_KERNEL;
|
|
+ return 0;
|
|
device[dev_len] = '\0';
|
|
device_p = strrchr(device, '/') + 1;
|
|
|