From: Serge Hallyn Date: Sat, 26 Sep 2015 21:03:53 +0000 (-0500) Subject: coverity: remove useless check X-Git-Tag: lxc-2.0.0.beta1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df31363a0f3fb6bdd63986e81cbb53f70ff90731;p=thirdparty%2Flxc.git coverity: remove useless check handler->conf can't be null bc we checked handler->conf->epheemral before calling lxc_destroy_container_on_signal() Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 0601333e2..5d1cb3634 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1309,7 +1309,7 @@ static void lxc_destroy_container_on_signal(struct lxc_handler *handler, bool bret = true; int ret = 0; struct lxc_container *c; - if (handler->conf && handler->conf->rootfs.path && handler->conf->rootfs.mount) { + if (handler->conf->rootfs.path && handler->conf->rootfs.mount) { bret = do_destroy_container(handler->conf); if (!bret) { ERROR("Error destroying rootfs for %s", name);