From bb659c8e192d498846d3f641b6a7462506c24ca0 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 18 Apr 2017 14:43:08 +0300 Subject: [PATCH] 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 Reviewed-by: Peter Hutterer --- libweston/libinput-device.c | 1 - libweston/libinput-device.h | 1 - 2 files changed, 2 deletions(-) diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c index 1b9fc9c8..9b2577b6 100644 --- a/libweston/libinput-device.c +++ b/libweston/libinput-device.c @@ -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); } diff --git a/libweston/libinput-device.h b/libweston/libinput-device.h index 5041a4aa..8e9f5608 100644 --- a/libweston/libinput-device.h +++ b/libweston/libinput-device.h @@ -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; };