Skip to content

Commit

Permalink
coverity: #1435805
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 a579fa5 commit 923929f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lxc/lxccontainer.c
Expand Up @@ -2041,11 +2041,8 @@ static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout)
}
TRACE("Sent signal %d to pid %d", haltsignal, 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 923929f

Please sign in to comment.