You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2020/11/17 11:21:04 UTC
[incubator-nuttx] branch master updated:
arch/arm/src/stm32h7/stm32_otghost.c: Fix undeclared "ret".
This is an automated email from the ASF dual-hosted git repository.
davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new fa713c0 arch/arm/src/stm32h7/stm32_otghost.c: Fix undeclared "ret".
fa713c0 is described below
commit fa713c09e8acb9ce0ec8f02cc5a706216e71015a
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Tue Nov 17 10:23:08 2020 +0000
arch/arm/src/stm32h7/stm32_otghost.c: Fix undeclared "ret".
---
arch/arm/src/stm32h7/stm32_otghost.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32h7/stm32_otghost.c b/arch/arm/src/stm32h7/stm32_otghost.c
index e341320..ccce4a2 100644
--- a/arch/arm/src/stm32h7/stm32_otghost.c
+++ b/arch/arm/src/stm32h7/stm32_otghost.c
@@ -1231,7 +1231,7 @@ static void stm32_chan_wakeup(FAR struct stm32_usbhost_s *priv,
****************************************************************************/
static int stm32_ctrlchan_alloc(FAR struct stm32_usbhost_s *priv,
- uint8_t epno, uint8_t funcaddr
+ uint8_t epno, uint8_t funcaddr,
uint8_t speed,
FAR struct stm32_ctrlinfo_s *ctrlep)
{
@@ -4237,6 +4237,7 @@ static int stm32_epalloc(FAR struct usbhost_driver_s *drvr,
static int stm32_epfree(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
{
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
+ int ret;
DEBUGASSERT(priv);