]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
c/r: remove unused variable mnts
authorTycho Andersen <tycho.andersen@canonical.com>
Tue, 9 Jun 2015 01:59:52 +0000 (19:59 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 11 Jun 2015 04:04:45 +0000 (23:04 -0500)
Reported-by: Coverity
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/criu.c

index adcc6262c12c3b196e4e8bb7bcbbc2c0d7c4ebbb..e939b37b593afb63b92ff0624ed3faaa0cc96f31 100644 (file)
@@ -54,7 +54,6 @@ void exec_criu(struct criu_opts *opts)
        struct lxc_list *it;
 
        char buf[4096];
-       FILE *mnts = NULL;
 
        /* The command line always looks like:
         * criu $(action) --tcp-established --file-locks --link-remap --force-irmap \
@@ -189,8 +188,6 @@ void exec_criu(struct criu_opts *opts)
 #undef DECLARE_ARG
        execv(argv[0], argv);
 err:
-       if (mnts)
-               fclose(mnts);
        for (i = 0; argv[i]; i++)
                free(argv[i]);
        free(argv);