logind: Remove useless check

This commit is contained in:
Kenny Levinsen 2020-08-23 20:12:29 +02:00
parent ff44c56ef9
commit 24c66d8c08

View file

@ -146,7 +146,7 @@ static int close_device(struct libseat *base, int device_id) {
static int switch_session(struct libseat *base, int s) { static int switch_session(struct libseat *base, int s) {
struct backend_logind *session = backend_logind_from_libseat_backend(base); struct backend_logind *session = backend_logind_from_libseat_backend(base);
if (s >= UINT16_MAX || s < 0) { if (s < 0) {
errno = EINVAL; errno = EINVAL;
return -1; return -1;
} }