Unverified Commit b526996b by Rikard Falkeborn Committed by Christian Brauner

criu: Remove unnecessary return after _exit()

Since _exit() will terminate, the return statement is dead code. Also, returning -1 from a function with bool as return type is confusing. Detected with cppcheck. Signed-off-by: 's avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
parent d3accb17
......@@ -1272,7 +1272,6 @@ static bool do_dump(struct lxc_container *c, char *mode, struct migrate_opts *op
if (!cgroup_ops) {
ERROR("failed to cgroup_init()");
_exit(EXIT_FAILURE);
return -1;
}
os.pipefd = criuout[1];
......
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