mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-01 03:40:14 +01:00
launcher-logind: Don't check wl->vtnr before returning it.
Signed-off-by: n3rdopolis <bluescreen_avenger@verizon.net>
This commit is contained in:
parent
b3ba1becba
commit
cdfe94b105
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue