From cdfe94b105eeb9d92cb95dba7d7c8d7dff5ab5ee Mon Sep 17 00:00:00 2001 From: nerdopolis Date: Thu, 6 Jan 2022 00:19:49 -0500 Subject: [PATCH] launcher-logind: Don't check wl->vtnr before returning it. Signed-off-by: n3rdopolis --- libweston/launcher-logind.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libweston/launcher-logind.c b/libweston/launcher-logind.c index 7ebf906b..2b3efecd 100644 --- a/libweston/launcher-logind.c +++ b/libweston/launcher-logind.c @@ -853,9 +853,6 @@ static int launcher_logind_get_vt(struct weston_launcher *launcher) { struct launcher_logind *wl = wl_container_of(launcher, wl, base); - if (wl->vtnr <= 0) { - return -EINVAL; - } return wl->vtnr; }