[PATCH weston 01/25] libinput: remove evdev_device::devnode
Pekka Paalanen
ppaalanen at gmail.com
Fri Mar 23 12:00:41 UTC 2018
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
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 at collabora.co.uk>
---
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;
};
--
2.16.1
More information about the wayland-devel
mailing list