]> 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:58:51 +0000 (16:58 -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 5ec1eec79b1b65a8409dea7b9b42eeae687d1442..70a838d04a6bb8e76e76f6b3e7db9dec19b8883d 100644 (file)
@@ -1528,7 +1528,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