summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}