From: kay.sievers@vrfy.org Date: Sat, 13 Nov 2004 11:50:44 +0000 (+0100) Subject: [PATCH] remove historical SYSFS_attr="value" format X-Git-Tag: 046~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d4a32aa2e4804de9189574213749616dda57faa7;p=elogind.git [PATCH] remove historical SYSFS_attr="value" format This is long ago replaced by the unified key attribute format SYSFS{attr}="value". --- diff --git a/namedev_parse.c b/namedev_parse.c index ccacceceb..4afa85cfa 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; }