summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-08 12:58:41 -0700
committerKeith Packard <keithp@keithp.com>2014-05-08 12:58:41 -0700
commitd60724b752613ce2ad11c6ae102bf4513f9768ff (patch)
tree4a9b33d42dbbef7d3e09b9a2a72609ca82ce8bcf /config
parenta5b9757142a2ab471ca26651dce9cc5f5e351f3d (diff)
parent15460eaed28b5353a94a17091d7795cfaeda9146 (diff)
Merge commit 'who/for-keith'
Skipping two unreviewed patches; will mark them reviewed and cherry pick
Diffstat (limited to 'config')
-rw-r--r--config/config.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/config.c b/config/config.c
index def7f16ca..551451623 100644
--- a/config/config.c
+++ b/config/config.c
@@ -250,8 +250,6 @@ config_odev_free_attributes(struct OdevAttributes *attribs)
free(iter);
}
- if (fd != -1) {
- systemd_logind_release_fd(major, minor);
- close(fd);
- }
+ if (fd != -1)
+ systemd_logind_release_fd(major, minor, fd);
}