From: Tycho Andersen Date: Tue, 9 Jun 2015 01:59:52 +0000 (-0600) Subject: c/r: remove unused variable mnts X-Git-Tag: lxc-2.0.0.beta1~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9e78f5700066798ec8cc88151f4d8b8940fa83;p=thirdparty%2Flxc.git c/r: remove unused variable mnts Reported-by: Coverity Signed-off-by: Tycho Andersen Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index adcc6262c..e939b37b5 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -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);