summaryrefslogtreecommitdiff
path: root/src/core/device.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-09 23:12:07 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 23:12:07 +0200
commit525d3cc746a037e8cc6b2e0ebaaf76a51856fa6b (patch)
treec96ffcfb5a7bf46fdbbd4ea6bf801bc3b3cf7acd /src/core/device.c
parent6796073e330f49923c5134652ee085e29fc88002 (diff)
tree-wide: take benefit of the fact that hashmap_free() returns NULL
And set_free() too. Another Coccinelle patch.
Diffstat (limited to 'src/core/device.c')
-rw-r--r--src/core/device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/device.c b/src/core/device.c
index 7fdfacfddf..0b54518691 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -594,8 +594,7 @@ static void device_shutdown(Manager *m) {
m->udev_monitor = NULL;
}
- hashmap_free(m->devices_by_sysfs);
- m->devices_by_sysfs = NULL;
+ m->devices_by_sysfs = hashmap_free(m->devices_by_sysfs);
}
static int device_enumerate(Manager *m) {