From 4c88142226724e5b60a6367f7d5a7458faab6770 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 22 Jul 2007 10:13:19 +0000 Subject: [PATCH] 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 --- lib/sysfs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/sysfs.c b/lib/sysfs.c index bb91a425..cf805bf8 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -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)