diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-28 22:49:58 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-30 04:14:10 +0900 |
commit | 08300bb03505307db34b3289b3b1fca7f0475594 (patch) | |
tree | 109f33113a9cac4b00fb4ca591530a3d18f3b98f /src | |
parent | 1363eeca946338735cec0d66020d1ed1d4eaedb0 (diff) | |
download | systemd-08300bb03505307db34b3289b3b1fca7f0475594.tar.gz |
core/device: use DEVICE_FOUND_MASK
Diffstat (limited to 'src')
-rw-r--r-- | src/core/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/device.c b/src/core/device.c index 9c3a75b426..dd1f71d43c 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -885,7 +885,7 @@ static void device_remove_old_on_move(Manager *m, sd_device *dev) { if (!syspath_old) return (void) log_oom(); - device_update_found_by_sysfs(m, syspath_old, 0, DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP); + device_update_found_by_sysfs(m, syspath_old, 0, DEVICE_FOUND_MASK); } static int device_dispatch_io(sd_device_monitor *monitor, sd_device *dev, void *userdata) { @@ -924,7 +924,7 @@ static int device_dispatch_io(sd_device_monitor *monitor, sd_device *dev, void * /* If we get notified that a device was removed by udev, then it's completely gone, hence * unset all found bits */ - device_update_found_by_sysfs(m, sysfs, 0, DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP); + device_update_found_by_sysfs(m, sysfs, 0, DEVICE_FOUND_MASK); } else if (device_is_ready(dev)) { |