From: Lennart Poettering Date: Mon, 4 Jun 2018 16:03:30 +0000 (+0200) Subject: core: use FLAGS_SET() macro at one more place X-Git-Tag: v239~123^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e0f878ee26f4622778fd31b18e9cdf9e0038e0c;p=thirdparty%2Fsystemd.git core: use FLAGS_SET() macro at one more place --- diff --git a/src/core/device.c b/src/core/device.c index 725aa9d3bf4..30707d07a75 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -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))