Skip to content

Commit

Permalink
state: remove tautological check
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Nov 22, 2018
1 parent ee3b324 commit 5953896
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lxc/state.c
Expand Up @@ -135,11 +135,6 @@ int lxc_wait(const char *lxcname, const char *states, int timeout,
(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));
if (!s[state])
return -1;
Expand Down

0 comments on commit 5953896

Please sign in to comment.