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:
Jean Delvare committed 2007-07-22 10:13:19 +00:00
1 parent 98110858fe
commit 4c88142226
1 file changed
-5
-5
View File
@@ -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)