summaryrefslogtreecommitdiff
path: root/src/core/device.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-05-01 21:42:43 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-13 02:56:14 +0900
commitf33bc87989a87475ed41bc9cd715c4cbb18ee389 (patch)
tree831aef3cc30f3a5f3a276739cbe881cd4f9ca807 /src/core/device.c
parent7353de27b7b4382783dad8437cd9d3b56d41156d (diff)
downloadsystemd-f33bc87989a87475ed41bc9cd715c4cbb18ee389.tar.gz
core/device: drop unnecessary condition
Diffstat (limited to 'src/core/device.c')
-rw-r--r--src/core/device.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 44425cda3c..934676287e 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);
}