core/device: fix meaningless assertion

Closes CID#1609498.
This commit is contained in:
Yu Watanabe
2025-04-26 09:29:43 +09:00
parent 52990feb2b
commit d6891af577
+1 -1
View File
@@ -364,7 +364,7 @@ static const struct {
static int device_found_to_string_many(DeviceFound flags, char **ret) {
_cleanup_free_ char *s = NULL;
assert(flags >= 0);
assert((flags & ~_DEVICE_FOUND_MASK) == 0);
assert(ret);
FOREACH_ELEMENT(i, device_found_map) {