launcher-logind: Don't check wl->vtnr before returning it.

Signed-off-by: n3rdopolis <bluescreen_avenger@verizon.net>
This commit is contained in:
nerdopolis 2022-01-06 00:19:49 -05:00 committed by Simon Ser
parent b3ba1becba
commit cdfe94b105

View file

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