mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
Discard devices with zero feature.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4637 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f302998cd2
commit
98110858fe
2 files changed
+11
-3
No files matched your search
@@ -347,8 +347,6 @@ const sensors_feature_data *sensors_get_all_features(sensors_chip_name name,
|
||||
if (sensors_match_chip(sensors_proc_chips[i].chip, name)) {
|
||||
feature_list = sensors_proc_chips[i].feature;
|
||||
if (!*nr1 && !*nr2) { /* Return the first entry */
|
||||
if (!feature_list[0].data.name) /* The list may be empty */
|
||||
return NULL;
|
||||
*nr1 = *nr2 = 1;
|
||||
return &feature_list->data;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user