diff options
author | Kenny Levinsen <kl@kl.wtf> | 2021-02-02 21:03:42 +0100 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-02-02 21:03:42 +0100 |
commit | b1f7ec1c4d753d0135cb88347efbc11c7039b2cb (patch) | |
tree | c2497064297266460419c6c2c2dbf818be30f0d2 /seatd | |
parent | 61b086511f86e8cc93528818ec0070c3c02a642f (diff) | |
download | seatd-b1f7ec1c4d753d0135cb88347efbc11c7039b2cb.tar.xz |
seat: Remove unused arg from seat_deactive_device
Diffstat (limited to 'seatd')
-rw-r--r-- | seatd/seat.c | 8 |
1 files 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)); } } |