remove extra parameter in path_disable_device()
authorweizhixiang <1138871845@qq.com>
Wed, 16 Sep 2020 05:13:34 +0000 (13:13 +0800)
committerweizhixiang <1138871845@qq.com>
Wed, 16 Sep 2020 07:56:19 +0000 (15:56 +0800)
Signed-off-by: weizhixiang <1138871845@qq.com>
src/path-seat.c

index 99b089a4a61dfece577c6cc50f393f11eeae0e2f..fbaae566ac901d927f3ebb8ca1f5af3011505d67 100644 (file)
@@ -49,8 +49,7 @@ static const char default_seat[] = "seat0";
 static const char default_seat_name[] = "default";
 
 static void
-path_disable_device(struct libinput *libinput,
-                   struct evdev_device *device)
+path_disable_device(struct evdev_device *device)
 {
        struct libinput_seat *seat = device->base.seat;
        struct evdev_device *dev, *next;
@@ -76,7 +75,7 @@ path_input_disable(struct libinput *libinput)
                libinput_seat_ref(&seat->base);
                list_for_each_safe(device, next,
                                   &seat->base.devices_list, base.link)
-                       path_disable_device(libinput, device);
+                       path_disable_device(device);
                libinput_seat_unref(&seat->base);
        }
 }
@@ -424,6 +423,6 @@ libinput_path_remove_device(struct libinput_device *device)
 
        seat = device->seat;
        libinput_seat_ref(seat);
-       path_disable_device(libinput, evdev);
+       path_disable_device(evdev);
        libinput_seat_unref(seat);
 }