diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-06 15:45:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 15:45:13 +0900 |
commit | 66f5730471682185cbe5bb9f11ec425bae91fb6c (patch) | |
tree | ccb814ba5167f08b8344dd595cea8817939bddf9 /src/core | |
parent | 7511655807e90aa33ea7b71991401a79ec36bb41 (diff) | |
download | systemd-66f5730471682185cbe5bb9f11ec425bae91fb6c.tar.gz |
core/device: remove unnecessary check (#8661)
Follow-up for 0dfb0a0abd98f8726a39f26e4d737f47ec0fd53b.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/device.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/device.c b/src/core/device.c index 8ba55625cd..b8ae730ac6 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -658,10 +658,7 @@ static void device_shutdown(Manager *m) { assert(m); 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); } |