core: remove unused variables

This commit is contained in:
Ronny Chevalier
2014-11-30 02:35:56 +01:00
parent 82b1412852
commit 4e2744fcb5
2 changed files with 3 additions and 6 deletions
+3 -4
View File
@@ -382,15 +382,14 @@ static int scope_deserialize_item(Unit *u, const char *key, const char *value, F
}
static bool scope_check_gc(Unit *u) {
Scope *s = SCOPE(u);
int r;
assert(s);
assert(u);
/* Never clean up scopes that still have a process around,
* even if the scope is formally dead. */
if (u->cgroup_path) {
int r;
r = cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, u->cgroup_path, true);
if (r <= 0)
return true;