diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-10-01 22:42:49 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-04 20:20:00 +0000 |
commit | 9c426e6dfd696b464df214fbe0ff9656e22c385b (patch) | |
tree | 39b545e95fede4342e7832cac5242d853604afdd | |
parent | cc8ad44e0e5083473d4e62baa3a5d4ca27d2d5ac (diff) | |
download | chrome-ec-9c426e6dfd696b464df214fbe0ff9656e22c385b.tar.gz |
chip/stm32: remove unused variable
clang warns:
ip/stm32/usb_hid_keyboard.c:378:21: error: unused variable 'hid_current_buf'
[-Werror,-Wunused-variable]
static volatile int hid_current_buf;
^
BRANCH=none
BUG=b:172020503
TEST=make buildall -j
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I88b424cbc8930bf2d7d6c0856d81104cbd4d3561
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3198203
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | chip/stm32/usb_hid_keyboard.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/chip/stm32/usb_hid_keyboard.c b/chip/stm32/usb_hid_keyboard.c index e2a8d675e9..ac4a9f5a1f 100644 --- a/chip/stm32/usb_hid_keyboard.c +++ b/chip/stm32/usb_hid_keyboard.c @@ -375,7 +375,6 @@ const struct usb_hid_descriptor USB_CUSTOM_DESC_VAR(USB_IFACE_HID_KEYBOARD, #define EP_TX_BUF_SIZE DIV_ROUND_UP(HID_KEYBOARD_REPORT_SIZE, 2) static usb_uint hid_ep_tx_buf[EP_TX_BUF_SIZE] __usb_ram; -static volatile int hid_current_buf; static volatile int hid_ep_data_ready; |