mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
lib/sysfs.c: Fix no sensors being reported as an error.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4041 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3098b38071
commit
3c3999f9f0
2 files changed
+5
-2
No files matched your search
@@ -7,6 +7,7 @@ lm_sensors CHANGES file
|
||||
Add support for W83627EHF voltage inputs and alarms
|
||||
Add support for the smsc47m192 driver
|
||||
Fix all memory leaks (yeah!)
|
||||
Fix no sensors being reported as an error
|
||||
Makefile: Don't grep autoconf.h on user-space targets
|
||||
Makefile: Fix depmod on non-running kernel version
|
||||
Module i2c-ali1535: Drop redundant semaphore (2.6 backport)
|
||||
|
||||
+4
-2
@@ -112,7 +112,8 @@ static int sensors_read_sysfs_chips_compat(void)
|
||||
}
|
||||
|
||||
if (!(devs = sysfs_get_bus_devices(bus))) {
|
||||
ret = -SENSORS_ERR_PROC;
|
||||
if (errno)
|
||||
ret = -SENSORS_ERR_PROC;
|
||||
goto exit1;
|
||||
}
|
||||
|
||||
@@ -142,7 +143,8 @@ int sensors_read_sysfs_chips(void)
|
||||
}
|
||||
|
||||
if (!(clsdevs = sysfs_get_class_devices(cls))) {
|
||||
ret = -SENSORS_ERR_PROC;
|
||||
if (errno)
|
||||
ret = -SENSORS_ERR_PROC;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user