Unverified Commit 7cb4a867 by Christian Brauner Committed by Stéphane Graber

console: remove dead assignments

non-functional changes Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 2c24b8ba
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment