libinput: remove evdev_device::devnode
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 18 Apr 2017 11:43:08 +0000 (14:43 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 20 Apr 2018 12:27:54 +0000 (15:27 +0300)
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>
libweston/libinput-device.c
libweston/libinput-device.h

index 1b9fc9c..9b2577b 100644 (file)
@@ -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);
 }
index 5041a4a..8e9f560 100644 (file)
@@ -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;
 };