]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/device: rewrite how device unit is removed from Manager.devices_by_sysfs
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Apr 2023 18:20:34 +0000 (03:20 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Apr 2023 07:22:25 +0000 (09:22 +0200)
commit114e85d28e9543e39d25414475c3f7e70a6fcbbb
tree11f730eed1daf05fe40561ac64ed97d80feed4ba
parent24a5370bbc1b52fee52d8891f66af13e9d77d799
core/device: rewrite how device unit is removed from Manager.devices_by_sysfs

If the device unit is not the head of the list saved in
Manager.devices_by_sysfs, then it is not necessary to replace the
existing hashmap entry. This should not change any behavior, just
refactoring.
src/core/device.c