From: Tycho Andersen Date: Fri, 26 Aug 2016 20:13:06 +0000 (-0400) Subject: remove extra 'ret' X-Git-Tag: lxc-2.1.0~337^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f56665557fb75898cb9cbf550063cc8259cf9ad;p=thirdparty%2Flxc.git remove extra 'ret' Signed-off-by: Tycho Andersen --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index c20c00a29..5a48c7203 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -749,8 +749,6 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_ ERROR("criu process exited %d, output:\n%s\n", WEXITSTATUS(status), buf); goto out_fini_handler; } else { - int ret; - ret = snprintf(buf, sizeof(buf), "/proc/self/task/%lu/children", (unsigned long)syscall(__NR_gettid)); if (ret < 0 || ret >= sizeof(buf)) { ERROR("snprintf'd too many characters: %d", ret);