diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-26 19:46:02 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-29 18:31:06 +0000 |
commit | 9a9aea956b8ebb3aded4799db73f69f5ba6e5035 (patch) | |
tree | 51ba54fc6c2d7027fa8ad465cd2e3a708661bb9e | |
parent | 822f2c1590541fb64bec399d61124402d5b4dc03 (diff) | |
download | src-9a9aea956b8ebb3aded4799db73f69f5ba6e5035.tar.gz src-9a9aea956b8ebb3aded4799db73f69f5ba6e5035.zip |
Fix unused variable warning in usb's atp.c
With clang 15, the following -Werror warning is produced:
sys/dev/usb/input/atp.c:2018:11: error: variable 'n_vertical_scrolls' set but not used [-Werror,-Wunused-but-set-variable]
u_int8_t n_vertical_scrolls = 0;
^
The 'n_vertical_scrolls' variable is no longer used after 197b9a2ef003,
so remove it.
MFC after: 3 days
(cherry picked from commit b621f3cf2d2c30880c49afe37598e0f550afb181)
-rw-r--r-- | sys/dev/usb/input/atp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/usb/input/atp.c b/sys/dev/usb/input/atp.c index b76653cc303b..8f0c6c36626a 100644 --- a/sys/dev/usb/input/atp.c +++ b/sys/dev/usb/input/atp.c @@ -2015,7 +2015,6 @@ atp_reap_sibling_zombies(void *arg) u_int8_t n_touches_reaped = 0; u_int8_t n_slides_reaped = 0; u_int8_t n_horizontal_scrolls = 0; - u_int8_t n_vertical_scrolls = 0; int horizontal_scroll = 0; atp_stroke_t *strokep; atp_stroke_t *strokep_next; @@ -2034,8 +2033,6 @@ atp_reap_sibling_zombies(void *arg) if (atp_is_horizontal_scroll(strokep)) { n_horizontal_scrolls++; horizontal_scroll += strokep->cum_movement_x; - } else if (atp_is_vertical_scroll(strokep)) { - n_vertical_scrolls++; } } |