]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
[PATCH] remove historical SYSFS_attr="value" format
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sat, 13 Nov 2004 11:50:44 +0000 (12:50 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 05:27:34 +0000 (22:27 -0700)
This is long ago replaced by the unified key attribute
format SYSFS{attr}="value".

namedev_parse.c

index ccacceceb45ec07105348954821babfb9d094de6..4afa85cfa991a6dbbb03469f1dd4ce16f06d4ba4 100644 (file)
@@ -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;
 }