1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00

core/device: remove unnecessary check (#8661)

Follow-up for 0dfb0a0abd.
This commit is contained in:
Yu Watanabe 2018-04-06 15:45:13 +09:00 committed by GitHub
parent 7511655807
commit 66f5730471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -658,10 +658,7 @@ static void device_shutdown(Manager *m) {
assert(m); assert(m);
m->udev_event_source = sd_event_source_unref(m->udev_event_source); m->udev_event_source = sd_event_source_unref(m->udev_event_source);
if (m->udev_monitor)
m->udev_monitor = udev_monitor_unref(m->udev_monitor); m->udev_monitor = udev_monitor_unref(m->udev_monitor);
m->devices_by_sysfs = hashmap_free(m->devices_by_sysfs); m->devices_by_sysfs = hashmap_free(m->devices_by_sysfs);
} }