summaryrefslogtreecommitdiffstats
path: root/src/shared/udev-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-04-03 22:40:52 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-04-04 18:49:20 +0200
commit54e6172550226362e4b88fd297e09266f981ea27 (patch)
treed3b8f561af82e0ec62bddfad619cb7c8b20b8894 /src/shared/udev-util.c
parentudev-util: rename device_is_processing() -> device_is_processed() (diff)
downloadsystemd-54e6172550226362e4b88fd297e09266f981ea27.tar.xz
systemd-54e6172550226362e4b88fd297e09266f981ea27.zip
tree-wide: use device_is_processed() more
Diffstat (limited to 'src/shared/udev-util.c')
-rw-r--r--src/shared/udev-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c
index 1934694035..15996ca724 100644
--- a/src/shared/udev-util.c
+++ b/src/shared/udev-util.c
@@ -139,7 +139,7 @@ static int device_wait_for_initialization_internal(
}
if (device) {
- if (sd_device_get_is_initialized(device) > 0) {
+ if (device_is_processed(device) > 0) {
if (ret)
*ret = sd_device_ref(device);
return 0;
@@ -202,7 +202,7 @@ static int device_wait_for_initialization_internal(
if (r < 0 && !ERRNO_IS_DEVICE_ABSENT(r))
return log_error_errno(r, "Failed to create sd-device object from %s: %m", devlink);
}
- if (device && sd_device_get_is_initialized(device) > 0) {
+ if (device && device_is_processed(device) > 0) {
if (ret)
*ret = sd_device_ref(device);
return 0;