mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-30 14:33:48 +00:00
libinput: remove evdev_device::devnode
Struct 'evdev_device' has field 'devnode' which is initialized to NULL, never assigned, and finally free()'d. Therefore it is useless. Remove the dead field. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6fae2be9fb
commit
bb659c8e19
|
@ -596,7 +596,6 @@ evdev_device_destroy(struct evdev_device *device)
|
|||
wl_list_remove(&device->output_destroy_listener.link);
|
||||
wl_list_remove(&device->link);
|
||||
libinput_device_unref(device->device);
|
||||
free(device->devnode);
|
||||
free(device->output_name);
|
||||
free(device);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,6 @@ struct evdev_device {
|
|||
struct wl_list link;
|
||||
struct weston_output *output;
|
||||
struct wl_listener output_destroy_listener;
|
||||
char *devnode;
|
||||
char *output_name;
|
||||
int fd;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue