From: weizhixiang <1138871845@qq.com> Date: Wed, 16 Sep 2020 05:13:34 +0000 (+0800) Subject: remove extra parameter in path_disable_device() X-Git-Tag: 1.16.901~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f2989e2aaaf30b5a8f2c9a2e6e1d19c11068dad;p=platform%2Fupstream%2Flibinput.git remove extra parameter in path_disable_device() Signed-off-by: weizhixiang <1138871845@qq.com> --- 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); }