summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas H. P. Andersen <phomes@gmail.com>2016-10-13 23:30:28 +0200
committerEvgeny Vereshchagin <evvers@ya.ru>2016-10-14 00:30:28 +0300
commit5c4624e082c0c153df63c0d11e31a85c73f770b7 (patch)
treea5bccd2c68af1abbaf719c54821e5ba8fb93cd60
parent8bfdf29b2492f7df721d20455ee10b2fd158395b (diff)
nspawn: remove unused variable (#4369)
-rw-r--r--src/nspawn/nspawn-cgroup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c
index fd0578b85c..5274767b96 100644
--- a/src/nspawn/nspawn-cgroup.c
+++ b/src/nspawn/nspawn-cgroup.c
@@ -56,7 +56,6 @@ static int chown_cgroup_path(const char *path, uid_t uid_shift) {
int chown_cgroup(pid_t pid, uid_t uid_shift) {
_cleanup_free_ char *path = NULL, *fs = NULL;
- _cleanup_close_ int fd = -1;
int r;
r = cg_pid_get_path(NULL, pid, &path);