mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 197b9a2ef0,
so remove it.
MFC after: 3 days
This commit is contained in:
parent
c45bc02560
commit
b621f3cf2d
1 changed files with 0 additions and 3 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue