mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-21 12:53:46 +00:00
coverity: #1435806
Logically dead code Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
49938fbcd9
commit
a579fa51bf
@ -1971,11 +1971,8 @@ static bool do_lxcapi_reboot2(struct lxc_container *c, int timeout)
|
|||||||
}
|
}
|
||||||
TRACE("Sent signal %d to pid %d", rebootsignal, pid);
|
TRACE("Sent signal %d to pid %d", rebootsignal, pid);
|
||||||
|
|
||||||
if (timeout == 0) {
|
if (timeout == 0)
|
||||||
if (state_client_fd >= 0)
|
|
||||||
close(state_client_fd);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
ret = lxc_cmd_sock_rcv_state(state_client_fd, timeout);
|
ret = lxc_cmd_sock_rcv_state(state_client_fd, timeout);
|
||||||
close(state_client_fd);
|
close(state_client_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user