From: Pekka Paalanen <pekka.paala...@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.paala...@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

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to