diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-05-01 21:42:43 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-05-13 02:56:14 +0900 |
commit | f33bc87989a87475ed41bc9cd715c4cbb18ee389 (patch) | |
tree | 831aef3cc30f3a5f3a276739cbe881cd4f9ca807 /src/core/device.c | |
parent | 7353de27b7b4382783dad8437cd9d3b56d41156d (diff) | |
download | systemd-f33bc87989a87475ed41bc9cd715c4cbb18ee389.tar.gz |
core/device: drop unnecessary condition
Diffstat (limited to 'src/core/device.c')
-rw-r--r-- | src/core/device.c | 5 |
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); } |