aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-23 20:12:29 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-23 20:12:29 +0200
commit24c66d8c084ff068482e4bc68cacb32957369864 (patch)
tree876d3c46d9d3761f31c2ec3eb1a421b9d3760f1d /libseat/backend
parentff44c56ef9870447e8b39ed33e69441037ef3c38 (diff)
logind: Remove useless check
Diffstat (limited to 'libseat/backend')
-rw-r--r--libseat/backend/logind.c2
1 files changed, 1 insertions, 1 deletions
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;
}