summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-05-04 22:08:05 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-05-04 22:08:05 +0200
commite3196993f1f7fdd9fb7fbf4eeb397080554ae920 (patch)
tree7bfd7594fa46b1018db7e634a11ea0610963e817 /udev/udev-rules.c
parentefca104ccfa8894b84ad4ec56388780ff317ced7 (diff)
remove all PHYSDEVPATH handling and warning about
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index e4594c31cd..fac418e526 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -1137,8 +1137,6 @@ static int add_rule(struct udev_rules *rules, char *line,
{
char *linepos;
char *attr;
- int physdev = 0;
- int waitfor = 0;
struct rule_tmp rule_tmp;
memset(&rule_tmp, 0x00, sizeof(struct rule_tmp));
@@ -1280,8 +1278,6 @@ static int add_rule(struct udev_rules *rules, char *line,
err(rules->udev, "error parsing ENV attribute\n");
goto invalid;
}
- if (strncmp(attr, "PHYSDEV", 7) == 0)
- physdev = 1;
if (op < OP_MATCH_MAX) {
if (rule_add_key(&rule_tmp, TK_M_ENV, op, value, attr) != 0)
goto invalid;
@@ -1378,7 +1374,6 @@ static int add_rule(struct udev_rules *rules, char *line,
if (strcasecmp(key, "WAIT_FOR") == 0 || strcasecmp(key, "WAIT_FOR_SYSFS") == 0) {
rule_add_key(&rule_tmp, TK_M_WAITFOR, 0, value, NULL);
- waitfor = 1;
continue;
}
@@ -1536,10 +1531,6 @@ static int add_rule(struct udev_rules *rules, char *line,
err(rules->udev, "unknown key '%s' in %s:%u\n", key, filename, lineno);
}
- if (physdev && !waitfor)
- err(rules->udev, "PHYSDEV* values are deprecated and not available on recent kernels, "
- "please fix it in %s:%u\n", filename, lineno);
-
/* add rule token */
rule_tmp.rule.rule.token_count = 1 + rule_tmp.token_cur;
if (add_token(rules, &rule_tmp.rule) != 0)