]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix unused variable warning in usb's atp.c
authorDimitry Andric <dim@FreeBSD.org>
Tue, 26 Jul 2022 19:46:02 +0000 (21:46 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Fri, 29 Jul 2022 18:31:06 +0000 (20:31 +0200)
commit9a9aea956b8ebb3aded4799db73f69f5ba6e5035
tree51ba54fc6c2d7027fa8ad465cd2e3a708661bb9e
parent822f2c1590541fb64bec399d61124402d5b4dc03
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)
sys/dev/usb/input/atp.c