Commit 60a742e0 by Serge Hallyn Committed by Daniel Lezcano

remove unused lastcap variable

parent 2b657f10
......@@ -91,7 +91,6 @@ int lxc_caps_up(void)
cap_t caps;
cap_value_t cap;
int ret;
int lastcap = 0;
/* when we are run as root, we don't want to play
* with the capabilities */
......@@ -118,7 +117,6 @@ int lxc_caps_up(void)
goto out;
}
}
lastcap = cap;
ret = cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap, flag);
if (ret) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment