From 24c66d8c084ff068482e4bc68cacb32957369864 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 23 Aug 2020 20:12:29 +0200 Subject: logind: Remove useless check --- libseat/backend/logind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libseat/backend') diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c index 53b8d08..cba928a 100644 --- a/libseat/backend/logind.c +++ b/libseat/backend/logind.c @@ -146,7 +146,7 @@ static int close_device(struct libseat *base, int device_id) { static int switch_session(struct libseat *base, int s) { struct backend_logind *session = backend_logind_from_libseat_backend(base); - if (s >= UINT16_MAX || s < 0) { + if (s < 0) { errno = EINVAL; return -1; } -- cgit v1.2.3