]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: use FOREACH_DEVICE_TAG() macro at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Nov 2020 09:36:11 +0000 (18:36 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Nov 2020 08:47:14 +0000 (09:47 +0100)
src/udev/udev-event.c

index 64ae83c47978dfb408ef2421c4e17a1b073f14f5..5159d19a3825d6d6b58e09642eb02b058b615403 100644 (file)
@@ -960,7 +960,7 @@ static int copy_all_tags(sd_device *d, sd_device *s) {
         if (!s)
                 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);
                 if (r < 0)
                         return r;