]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: drop gratuitous null check
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Dec 2013 20:02:00 +0000 (14:02 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Dec 2013 20:02:00 +0000 (14:02 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index 55ef2dba10d720df1a9086c7fe0f24a14eac8b4c..6326724b6b7cf789c9a9dd47b74d6c8f484dd8ac 100644 (file)
@@ -1281,8 +1281,7 @@ static bool lxcapi_create(struct lxc_container *c, const char *t,
                goto out_unlock;
 
        /* reload config to get the rootfs */
-       if (c->lxc_conf)
-               lxc_conf_free(c->lxc_conf);
+       lxc_conf_free(c->lxc_conf);
        c->lxc_conf = NULL;
        if (!load_config_locked(c, c->configfile))
                goto out_unlock;