From: Christian Brauner Date: Sat, 20 Oct 2018 09:32:04 +0000 (+0200) Subject: state: remove tautological check X-Git-Tag: lxc-3.1.0~29^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=961b6f44314f320cbb96579869166cc21b73c995;p=thirdparty%2Flxc.git state: remove tautological check Signed-off-by: Christian Brauner --- 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;