Skip to content

Commit

Permalink
coverity: #1435806
Browse files Browse the repository at this point in the history
Logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed May 26, 2018
1 parent 918d16b commit 22cfc4f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lxc/lxccontainer.c
Expand Up @@ -1971,11 +1971,8 @@ static bool do_lxcapi_reboot2(struct lxc_container *c, int timeout)
}
TRACE("Sent signal %d to pid %d", rebootsignal, pid);

if (timeout == 0) {
if (state_client_fd >= 0)
close(state_client_fd);
if (timeout == 0)
return true;
}

ret = lxc_cmd_sock_rcv_state(state_client_fd, timeout);
close(state_client_fd);
Expand Down

0 comments on commit 22cfc4f

Please sign in to comment.