From d6891af577db16dedb7a67aea5f310054c6ef852 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 26 Apr 2025 09:29:40 +0900 Subject: [PATCH] core/device: fix meaningless assertion Closes CID#1609498. --- src/core/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/device.c b/src/core/device.c index 08235caa42c..ea06f0ccb49 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -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) { -- 2.47.3