From 37dce81753948312d663a3c0e98d28ac0c37e07c Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 24 Feb 2018 15:18:55 +0100 Subject: [PATCH] lxccontainer: do_lxcapi_console_getfd() Signed-off-by: Christian Brauner --- src/lxc/lxccontainer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 45252d996..e91c968e4 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -523,12 +523,10 @@ WRAP_API(bool, lxcapi_unfreeze) static int do_lxcapi_console_getfd(struct lxc_container *c, int *ttynum, int *masterfd) { - int ttyfd; if (!c) return -1; - ttyfd = lxc_console_getfd(c, ttynum, masterfd); - return ttyfd; + return lxc_console_getfd(c, ttynum, masterfd); } WRAP_API_2(int, lxcapi_console_getfd, int *, int *)