mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
[PATCH] remove historical SYSFS_attr="value" format
This is long ago replaced by the unified key attribute format SYSFS{attr}="value".
This commit is contained in:
parent
d402af7d71
commit
d4a32aa2e4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user