mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
core/device: trivial simplification
This commit is contained in:
parent
1cc6c93a95
commit
0dfb0a0abd
@ -659,10 +659,8 @@ static void device_shutdown(Manager *m) {
|
||||
|
||||
m->udev_event_source = sd_event_source_unref(m->udev_event_source);
|
||||
|
||||
if (m->udev_monitor) {
|
||||
udev_monitor_unref(m->udev_monitor);
|
||||
m->udev_monitor = NULL;
|
||||
}
|
||||
if (m->udev_monitor)
|
||||
m->udev_monitor = udev_monitor_unref(m->udev_monitor);
|
||||
|
||||
m->devices_by_sysfs = hashmap_free(m->devices_by_sysfs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user