remove extra parameter in path_disable_device()

Signed-off-by: weizhixiang <1138871845@qq.com>
This commit is contained in:
weizhixiang 2020-09-16 13:13:34 +08:00
parent bb84fcc738
commit 7f2989e2aa

View 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);
}