mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 08:18:09 +02: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)
|
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…
Add table
Reference in a new issue