sd-device: simplify device_enumerator_scan_devices_and_subsystems() a bit
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Apr 2022 08:17:22 +0000 (10:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Apr 2022 14:25:48 +0000 (16:25 +0200)
commit09c24f76dce5f606056d916207676f2a93157deb
tree7dcb0181410a9e12140b69dd3359f94a779d7657
parent008714f8c4c10bc38180eeeb837e84122dae4757
sd-device: simplify device_enumerator_scan_devices_and_subsystems() a bit

We can use enumerator_scan_devices_all() to shorten the code, and drop
some of the error handling complexities.
src/libsystemd/sd-device/device-enumerator.c