]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
state: remove tautological check
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Oct 2018 09:32:04 +0000 (11:32 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 22 Oct 2018 14:47:44 +0000 (16:47 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/state.c

index b3e6f83f8b2209d7aa015a8113e7bc316a71408a..0fb0e2d6459889541c5cc96c05e8dcf0ab1d2b2a 100644 (file)
@@ -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;