From: Yu Watanabe Date: Fri, 6 Apr 2018 06:45:13 +0000 (+0900) Subject: core/device: remove unnecessary check (#8661) X-Git-Tag: v239~432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66f5730471682185cbe5bb9f11ec425bae91fb6c;p=thirdparty%2Fsystemd.git core/device: remove unnecessary check (#8661) Follow-up for 0dfb0a0abd98f8726a39f26e4d737f47ec0fd53b. --- diff --git a/src/core/device.c b/src/core/device.c index 8ba55625cd3..b8ae730ac6f 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); }