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

Signed-off-by: n3rdopolis <bluescreen_avenger@verizon.net>
dev
nerdopolis 3 years ago committed by Simon Ser
parent b3ba1becba
commit cdfe94b105
  1. 3
      libweston/launcher-logind.c

@ -853,9 +853,6 @@ static int
launcher_logind_get_vt(struct weston_launcher *launcher) launcher_logind_get_vt(struct weston_launcher *launcher)
{ {
struct launcher_logind *wl = wl_container_of(launcher, wl, base); struct launcher_logind *wl = wl_container_of(launcher, wl, base);
if (wl->vtnr <= 0) {
return -EINVAL;
}
return wl->vtnr; return wl->vtnr;
} }

Loading…
Cancel
Save