2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 09:29:34 +00:00

console: remove dead assignments

non-functional changes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2017-09-09 11:23:14 +02:00
parent 5c05427a60
commit a05a723f6a

View File

@@ -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);