From df31363a0f3fb6bdd63986e81cbb53f70ff90731 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Sat, 26 Sep 2015 16:03:53 -0500 Subject: [PATCH] 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 --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);