From: Christian Brauner Date: Sat, 9 Sep 2017 09:23:14 +0000 (+0200) Subject: console: remove dead assignments X-Git-Tag: lxc-2.0.9~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5786da47a60bbcf487967df7885ef6f8f1ea6b;p=thirdparty%2Flxc.git console: remove dead assignments non-functional changes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/console.c b/src/lxc/console.c index 97ae7a16e..c882b85c6 100644 --- a/src/lxc/console.c +++ b/src/lxc/console.c @@ -480,7 +480,6 @@ static int lxc_console_peer_default(struct lxc_console *console) console->tios = malloc(sizeof(*console->tios)); if (!console->tios) { SYSERROR("failed to allocate memory"); - ret = -ENOMEM; goto on_error1; } @@ -492,7 +491,6 @@ static int lxc_console_peer_default(struct lxc_console *console) on_error2: free(console->tios); console->tios = NULL; - ret = -ENOTTY; on_error1: close(console->peer);