]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: use FLAGS_SET() macro at one more place
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Jun 2018 16:03:30 +0000 (18:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 11:36:19 +0000 (13:36 +0200)
src/core/device.c

index 725aa9d3bf42d238d23c2369659fd21134e34cbf..30707d07a75d0bf8595cb891f36cd89053251a39 100644 (file)
@@ -167,7 +167,7 @@ static int device_found_to_string_many(DeviceFound flags, char **ret) {
         assert(ret);
 
         for (i = 0; device_found_map[i].name; i++) {
-                if ((flags & device_found_map[i].flag) != device_found_map[i].flag)
+                if (!FLAGS_SET(flags, device_found_map[i].flag))
                         continue;
 
                 if (!strextend_with_separator(&s, ",", device_found_map[i].name, NULL))