]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: remove useless check
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 26 Sep 2015 21:03:53 +0000 (16:03 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 26 Sep 2015 21:03:53 +0000 (16:03 -0500)
handler->conf can't be null bc we checked handler->conf->epheemral
before calling lxc_destroy_container_on_signal()

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/start.c

index 0601333e28559bdc6b2728769fffbb148b0edb4c..5d1cb3634f189fcd5c8c8a8007be2926cb174df2 100644 (file)
@@ -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);