summaryrefslogtreecommitdiff
path: root/namedev_parse.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-13 12:50:44 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:27:34 -0700
commitd4a32aa2e4804de9189574213749616dda57faa7 (patch)
tree3206c684826993f3168d3789929b87e002ec73f5 /namedev_parse.c
parentd402af7d71be3b89eac5877a425f2c6bce5c4f3d (diff)
[PATCH] remove historical SYSFS_attr="value" format
This is long ago replaced by the unified key attribute format SYSFS{attr}="value".
Diffstat (limited to 'namedev_parse.c')
-rw-r--r--namedev_parse.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index ccacceceb4..4afa85cfa9 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -113,7 +113,7 @@ void dump_perm_dev_list(void)
dump_perm_dev(dev);
}
-/* extract possible KEY{attr} or KEY_attr */
+/* extract possible KEY{attr} */
static char *get_key_attribute(char *str)
{
char *pos;
@@ -132,13 +132,6 @@ static char *get_key_attribute(char *str)
return attr;
}
- attr = strchr(str, '_');
- if (attr != NULL) {
- attr++;
- dbg("attribute='%s'", attr);
- return attr;
- }
-
return NULL;
}