From 5953896972302ab77108654dca8f0f52d29e7bdb Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 20 Oct 2018 11:32:04 +0200 Subject: [PATCH] state: remove tautological check Signed-off-by: Christian Brauner --- src/lxc/state.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/lxc/state.c b/src/lxc/state.c index b3e6f83f8b..0fb0e2d645 100644 --- a/src/lxc/state.c +++ b/src/lxc/state.c @@ -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;