summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index 6e978d74b4..9041c383e0 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -413,12 +413,9 @@ static int add_to_rules(struct udev_rules *rules, char *line)
rule->ignore_remove = 1;
}
}
- if (value[0] == '\0') {
- dbg("name empty device should be ignored");
- rule->name.operation = operation;
- rule->ignore_device = 1;
- } else
- add_rule_key(rule, &rule->name, operation, value);
+ if (value[0] == '\0')
+ dbg("name empty, not creation supressed");
+ add_rule_key(rule, &rule->name, operation, value);
continue;
}