From: Yu Watanabe Date: Sun, 1 May 2022 12:42:43 +0000 (+0900) Subject: core/device: drop unnecessary condition X-Git-Tag: v251-rc3~6^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f33bc87989a87475ed41bc9cd715c4cbb18ee389;p=thirdparty%2Fsystemd.git core/device: drop unnecessary condition --- 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); }