From: Yu Watanabe Date: Thu, 28 Apr 2022 13:49:58 +0000 (+0900) Subject: core/device: use DEVICE_FOUND_MASK X-Git-Tag: v251-rc2~44^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23230%2Fhead;p=thirdparty%2Fsystemd.git core/device: use DEVICE_FOUND_MASK --- diff --git a/src/core/device.c b/src/core/device.c index 9c3a75b4264..dd1f71d43c0 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)) {