]> git.ipfire.org Git - thirdparty/libvirt.git/commit
node_device_udev: Split udevRemoveOneDevice() into two
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Apr 2020 13:59:19 +0000 (15:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 22 Apr 2020 10:51:15 +0000 (12:51 +0200)
commitbfa8cf4b299086719bc644fcb70f24793b5eb49a
tree66c6d9868e6fe687a667e53eb4256f51f14d85c9
parent4c1033a15194ff8ef41dc4fe0f72713a274b810a
node_device_udev: Split udevRemoveOneDevice() into two

Move internals of udevRemoveOneDevice() into a separate function
which accepts sysfs path as an argument and actually removes the
device from the internal list. It will be reused later.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/node_device/node_device_udev.c