From f33bc87989a87475ed41bc9cd715c4cbb18ee389 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 1 May 2022 21:42:43 +0900 Subject: [PATCH] core/device: drop unnecessary condition --- src/core/device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/device.c b/src/core/device.c index 44425cda3c1..934676287ef 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -179,10 +179,7 @@ static void device_catchup(Unit *u) { assert(d); - /* Second, let's update the state with the enumerated state if it's different */ - if (d->enumerated_found == d->found) - return; - + /* Second, let's update the state with the enumerated state */ device_update_found_one(d, d->enumerated_found, DEVICE_FOUND_MASK); } -- 2.47.3