From d16122e98a1630d3ea96ff80dc3ea262660fd502 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 18 Sep 2020 15:13:09 +0200 Subject: client: Remove unnecessary active_client check --- seatd/client.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'seatd') diff --git a/seatd/client.c b/seatd/client.c index bf339d9..31a3fd5 100644 --- a/seatd/client.c +++ b/seatd/client.c @@ -295,13 +295,6 @@ static int handle_disable_seat(struct client *client) { return -1; } - struct seat *seat = client->seat; - if (seat->active_client != client) { - log_info("client is not currently active"); - errno = EPERM; - goto error; - } - if (seat_ack_disable_client(client) == -1) { goto error; } -- cgit v1.2.3