seat: Remove unused arg from seat_deactive_device
This commit is contained in:
parent
61b086511f
commit
b1f7ec1c4d
1 changed files with 3 additions and 5 deletions
|
@ -302,9 +302,7 @@ done:
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int seat_deactivate_device(struct client *client, struct seat_device *seat_device) {
|
static int seat_deactivate_device(struct seat_device *seat_device) {
|
||||||
assert(client);
|
|
||||||
assert(client->seat);
|
|
||||||
assert(seat_device && seat_device->fd > 0);
|
assert(seat_device && seat_device->fd > 0);
|
||||||
|
|
||||||
if (!seat_device->active) {
|
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);
|
linked_list_remove(&seat_device->link);
|
||||||
if (seat_device->fd != -1) {
|
if (seat_device->fd != -1) {
|
||||||
seat_deactivate_device(client, seat_device);
|
seat_deactivate_device(seat_device);
|
||||||
close(seat_device->fd);
|
close(seat_device->fd);
|
||||||
}
|
}
|
||||||
free(seat_device->path);
|
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;
|
for (struct linked_list *elem = client->devices.next; elem != &client->devices;
|
||||||
elem = elem->next) {
|
elem = elem->next) {
|
||||||
struct seat_device *device = (struct seat_device *)elem;
|
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));
|
log_errorf("unable to deactivate '%s': %s", device->path, strerror(errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue