]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/device: drop unnecessary condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 1 May 2022 12:42:43 +0000 (21:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 May 2022 17:56:14 +0000 (02:56 +0900)
src/core/device.c

index 44425cda3c132a7857f0a2c76811683defbe6e6e..934676287efa9fb7a7a3841f3c1b9c123a634a83 100644 (file)
@@ -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);
 }