summaryrefslogtreecommitdiff
path: root/src/evdev-fallback.c
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2021-02-22 19:52:40 +0300
committerKonstantin Kharlamov <Hi-Angel@yandex.ru>2021-03-02 09:10:35 +0300
commit3d3d9b7f69b1119523becab3160378066db2e1c0 (patch)
treec86d430efe98ab0d8aff3394b599974e17689168 /src/evdev-fallback.c
parent3f2c48343914d323f1ce1baa17f8cfbdfd86bdb9 (diff)
downloadlibinput-3d3d9b7f69b1119523becab3160378066db2e1c0.tar.gz
treewide: get rid of `tmp` argument in list_for_each_safe
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Diffstat (limited to 'src/evdev-fallback.c')
-rw-r--r--src/evdev-fallback.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c
index 1e10fc31..b313d549 100644
--- a/src/evdev-fallback.c
+++ b/src/evdev-fallback.c
@@ -1158,7 +1158,7 @@ static void
fallback_interface_remove(struct evdev_dispatch *evdev_dispatch)
{
struct fallback_dispatch *dispatch = fallback_dispatch(evdev_dispatch);
- struct evdev_paired_keyboard *kbd, *tmp;
+ struct evdev_paired_keyboard *kbd;
libinput_timer_cancel(&dispatch->debounce.timer);
libinput_timer_cancel(&dispatch->debounce.timer_short);
@@ -1167,7 +1167,6 @@ fallback_interface_remove(struct evdev_dispatch *evdev_dispatch)
libinput_device_remove_event_listener(&dispatch->tablet_mode.other.listener);
list_for_each_safe(kbd,
- tmp,
&dispatch->lid.paired_keyboard_list,
link) {
evdev_paired_keyboard_destroy(kbd);
@@ -1433,10 +1432,9 @@ fallback_interface_device_removed(struct evdev_device *device,
{
struct fallback_dispatch *dispatch =
fallback_dispatch(device->dispatch);
- struct evdev_paired_keyboard *kbd, *tmp;
+ struct evdev_paired_keyboard *kbd;
list_for_each_safe(kbd,
- tmp,
&dispatch->lid.paired_keyboard_list,
link) {
if (!kbd->device)