]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix dead code
authorTycho Andersen <tycho.andersen@canonical.com>
Mon, 13 Apr 2015 18:07:03 +0000 (18:07 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 13 Apr 2015 21:54:47 +0000 (16:54 -0500)
We've already checked that c is not null above, so the false branch can never
be taken here.

Reported-by: Coverity
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 0218e57bc1e6ab2918b5a7347166f7f70a3fb569..5b96b8c50c189c57813274a69ad50a19fc568b30 100644 (file)
@@ -1531,7 +1531,7 @@ static bool lxcapi_createl(struct lxc_container *c, const char *t,
                return false;
 
        struct lxc_conf *old = current_config;
-       current_config = c ? c->lxc_conf : NULL;
+       current_config = c->lxc_conf;
 
        /*
         * since we're going to wait for create to finish, I don't think we