udev: use FOREACH_DEVICE_TAG() macro at one more place

This commit is contained in:
Yu Watanabe 2020-11-16 18:36:11 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 91ed0c8e32
commit 5b90b906c7

View file

@ -960,7 +960,7 @@ static int copy_all_tags(sd_device *d, sd_device *s) {
if (!s) if (!s)
return 0; return 0;
for (tag = sd_device_get_tag_first(s); tag; tag = sd_device_get_tag_next(s)) { FOREACH_DEVICE_TAG(s, tag) {
r = device_add_tag(d, tag, false); r = device_add_tag(d, tag, false);
if (r < 0) if (r < 0)
return r; return r;