mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +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
+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