mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
trivial cleanup in udev_rules_iter
This commit is contained in:
parent
b95f8a76e6
commit
669ed8675f
@ -45,9 +45,9 @@ struct udev_rule *udev_rules_iter_next(struct udev_rules_iter *iter)
|
||||
if (!rules)
|
||||
return NULL;
|
||||
|
||||
dbg(iter->rules->udev, "current=%zi\n", iter->current);
|
||||
dbg(rules->udev, "current=%zi\n", iter->current);
|
||||
if (iter->current >= rules->bufsize) {
|
||||
dbg(iter->rules->udev, "no more rules\n");
|
||||
dbg(rules->udev, "no more rules\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ struct udev_rule *udev_rules_iter_label(struct udev_rules_iter *iter, const char
|
||||
size_t start = iter->current;
|
||||
|
||||
next:
|
||||
dbg(iter->rules->udev, "current=%zi\n", iter->current);
|
||||
dbg(rules->udev, "current=%zi\n", iter->current);
|
||||
if (iter->current >= rules->bufsize) {
|
||||
err(rules->udev, "LABEL='%s' not found, GOTO will be ignored\n", label);
|
||||
iter->current = start;
|
||||
|
Loading…
Reference in New Issue
Block a user