mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +00:00
No need to explicitly discard subclients. With the hwmon class, they won't
even be found. For earlier kernels, they will be discarded anyway because they expose zero feature. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4638 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
98110858fe
commit
4c88142226
1 file changed
-5
@@ -217,11 +217,6 @@ static int sensors_read_one_sysfs_chip(struct sysfs_device *dev)
|
||||
if (!(attr = sysfs_get_device_attr(dev, "name")))
|
||||
return 0;
|
||||
|
||||
/* ignore subclients */
|
||||
if (attr->len >= 11 && !strcmp(attr->value + attr->len - 11,
|
||||
" subclient\n"))
|
||||
return 0;
|
||||
|
||||
/* NB: attr->value[attr->len-1] == '\n'; chop that off */
|
||||
entry.chip.prefix = strndup(attr->value, attr->len - 1);
|
||||
if (!entry.chip.prefix)
|
||||
|
||||
Reference in new issue
Block a user