mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
drivers/usbhost: fix build waring
usbhost/usbhost_hidkbd.c:1373:14: warning: unused variable ‘flags’ [-Wunused-variable]
1373 | irqstate_t flags;
| ^~~~~
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
@@ -1370,8 +1370,6 @@ static void usbhost_kbd_callback(FAR void *arg, ssize_t nbytes)
|
||||
static int usbhost_kbdpoll(int argc, FAR char *argv[])
|
||||
{
|
||||
FAR struct usbhost_state_s *priv;
|
||||
irqstate_t flags;
|
||||
|
||||
#if defined(CONFIG_DEBUG_USB) && defined(CONFIG_DEBUG_INFO)
|
||||
unsigned int npolls = 0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user