From 961b6f44314f320cbb96579869166cc21b73c995 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 b3e6f83f8..0fb0e2d64 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;