state: remove tautological check

parent e69abbb1
...@@ -135,11 +135,6 @@ int lxc_wait(const char *lxcname, const char *states, int timeout, ...@@ -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;
......
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