mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 09:35:39 +00:00
state: remove tautological check
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
e69abbb1fa
commit
961b6f4431
@ -135,11 +135,6 @@ int lxc_wait(const char *lxcname, const char *states, int timeout,
|
|||||||
(void)nanosleep(&onesec, NULL);
|
(void)nanosleep(&onesec, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state < 0) {
|
|
||||||
ERROR("Failed to retrieve state from monitor");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
TRACE("Retrieved state of container %s", lxc_state2str(state));
|
TRACE("Retrieved state of container %s", lxc_state2str(state));
|
||||||
if (!s[state])
|
if (!s[state])
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user