git: 197b9a2ef003 - main - atp: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:59 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=197b9a2ef0037e02721fec27a707e34a4d06d2c6
commit 197b9a2ef0037e02721fec27a707e34a4d06d2c6
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-08 00:01:29 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-08 00:01:29 +0000
atp: Remove unused variable.
---
sys/dev/usb/input/atp.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/usb/input/atp.c b/sys/dev/usb/input/atp.c
index 585afbaf1a1b..b76653cc303b 100644
--- a/sys/dev/usb/input/atp.c
+++ b/sys/dev/usb/input/atp.c
@@ -2017,7 +2017,6 @@ atp_reap_sibling_zombies(void *arg)
u_int8_t n_horizontal_scrolls = 0;
u_int8_t n_vertical_scrolls = 0;
int horizontal_scroll = 0;
- int vertical_scroll = 0;
atp_stroke_t *strokep;
atp_stroke_t *strokep_next;
@@ -2037,7 +2036,6 @@ atp_reap_sibling_zombies(void *arg)
horizontal_scroll += strokep->cum_movement_x;
} else if (atp_is_vertical_scroll(strokep)) {
n_vertical_scrolls++;
- vertical_scroll += strokep->cum_movement_y;
}
}