From: Tycho Andersen Date: Mon, 13 Apr 2015 18:07:03 +0000 (+0000) Subject: fix dead code X-Git-Tag: lxc-1.1.3~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53caaac80f6850287251cc5e3a02479fb4a27087;p=thirdparty%2Flxc.git fix dead code 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 Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 5ec1eec79..70a838d04 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -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