summaryrefslogtreecommitdiffstats
path: root/src/core/device.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-04 18:03:30 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-07 13:36:19 +0200
commit6e0f878ee26f4622778fd31b18e9cdf9e0038e0c (patch)
tree116b3453de91cc824ec49804649e150b6f56db77 /src/core/device.c
parentcore: modernize device_set_sysfs() a bit (diff)
downloadsystemd-6e0f878ee26f4622778fd31b18e9cdf9e0038e0c.tar.xz
systemd-6e0f878ee26f4622778fd31b18e9cdf9e0038e0c.zip
core: use FLAGS_SET() macro at one more place
Diffstat (limited to '')
-rw-r--r--src/core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 725aa9d3bf..30707d07a7 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))