From 997fa4b749211eb0f107e09664774bf6a9f88d17 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 28 Nov 2014 11:49:24 -0600 Subject: [PATCH] Fix one warning. There are a couple of others that look like real problems --- arch/arm/src/stm32/stm32_usbdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/stm32_usbdev.c b/arch/arm/src/stm32/stm32_usbdev.c index 8651c69f5d..1229a3ed7d 100644 --- a/arch/arm/src/stm32/stm32_usbdev.c +++ b/arch/arm/src/stm32/stm32_usbdev.c @@ -1369,6 +1369,7 @@ static int stm32_wrrequest(struct stm32_usbdev_s *priv, struct stm32_ep_s *prive epno = USB_EPNO(privep->ep.eplog); ullvdbg("epno=%d req=%p: len=%d xfrd=%d nullpkt=%d\n", epno, privreq, privreq->req.len, privreq->req.xfrd, privep->txnullpkt); + UNUSED(epno); /* Get the number of bytes left to be sent in the packet */ @@ -1749,7 +1750,7 @@ static void stm32_ep0setup(struct stm32_usbdev_s *priv) ep0->stalled = 0; ep0->txbusy = 0; - /* Check to see if called from the DATA phase of a SETUP Trasfer */ + /* Check to see if called from the DATA phase of a SETUP Transfer */ if (priv->ep0state != EP0STATE_SETUP_READY) { @@ -1783,7 +1784,7 @@ static void stm32_ep0setup(struct stm32_usbdev_s *priv) { priv->ep0state = EP0STATE_SETUP_READY; } - } + } /* Dispatch any non-standard requests */