]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
console: remove dead assignments
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 9 Sep 2017 09:23:14 +0000 (11:23 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 24 Sep 2017 04:36:46 +0000 (00:36 -0400)
non-functional changes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/console.c

index 97ae7a16e5ad4d8375ef244d28608c6ba86d348a..c882b85c6e3f29b5e1b10b4737192796e4d8a22d 100644 (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);