From 7f2989e2aaaf30b5a8f2c9a2e6e1d19c11068dad Mon Sep 17 00:00:00 2001 From: weizhixiang <1138871845@qq.com> Date: Wed, 16 Sep 2020 13:13:34 +0800 Subject: [PATCH] remove extra parameter in path_disable_device() Signed-off-by: weizhixiang <1138871845@qq.com> --- src/path-seat.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/path-seat.c b/src/path-seat.c index 99b089a4..fbaae566 100644 --- a/src/path-seat.c +++ b/src/path-seat.c @@ -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); } -- 2.34.1