Skip to content

Commit

Permalink
console: remove dead assignments
Browse files Browse the repository at this point in the history
non-functional changes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Sep 24, 2017
1 parent 369d1bc commit 8f5786d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lxc/console.c
Expand Up @@ -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;
}

Expand All @@ -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);
Expand Down

0 comments on commit 8f5786d

Please sign in to comment.