From b1f7ec1c4d753d0135cb88347efbc11c7039b2cb Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Tue, 2 Feb 2021 21:03:42 +0100 Subject: seat: Remove unused arg from seat_deactive_device --- seatd/seat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/seatd/seat.c b/seatd/seat.c index b530a36..a14eddd 100644 --- a/seatd/seat.c +++ b/seatd/seat.c @@ -302,9 +302,7 @@ done: return device; } -static int seat_deactivate_device(struct client *client, struct seat_device *seat_device) { - assert(client); - assert(client->seat); +static int seat_deactivate_device(struct seat_device *seat_device) { assert(seat_device && seat_device->fd > 0); if (!seat_device->active) { @@ -347,7 +345,7 @@ int seat_close_device(struct client *client, struct seat_device *seat_device) { linked_list_remove(&seat_device->link); if (seat_device->fd != -1) { - seat_deactivate_device(client, seat_device); + seat_deactivate_device(seat_device); close(seat_device->fd); } free(seat_device->path); @@ -512,7 +510,7 @@ static int seat_disable_client(struct client *client) { for (struct linked_list *elem = client->devices.next; elem != &client->devices; elem = elem->next) { struct seat_device *device = (struct seat_device *)elem; - if (seat_deactivate_device(client, device) == -1) { + if (seat_deactivate_device(device) == -1) { log_errorf("unable to deactivate '%s': %s", device->path, strerror(errno)); } } -- cgit v1.2.3