You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/19 13:02:08 UTC

[incubator-nuttx] branch master updated: arch/arm/src/stm32f7/stm32_otghost.c: fix undeclared ret

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang 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 df6e3d1349 arch/arm/src/stm32f7/stm32_otghost.c: fix undeclared ret
df6e3d1349 is described below

commit df6e3d1349a44f19b62aa8725ebd1a2dc4844dae
Author: yangxuan8282 <ya...@gmail.com>
AuthorDate: Fri Aug 19 15:17:52 2022 +0800

    arch/arm/src/stm32f7/stm32_otghost.c: fix undeclared ret
---
 arch/arm/src/stm32f7/stm32_otghost.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/src/stm32f7/stm32_otghost.c b/arch/arm/src/stm32f7/stm32_otghost.c
index 3c2160ee83..6cf0e6deb6 100644
--- a/arch/arm/src/stm32f7/stm32_otghost.c
+++ b/arch/arm/src/stm32f7/stm32_otghost.c
@@ -4684,6 +4684,7 @@ static ssize_t stm32_transfer(struct usbhost_driver_s *drvr,
   struct stm32_usbhost_s *priv = (struct stm32_usbhost_s *)drvr;
   unsigned int chidx = (unsigned int)ep;
   ssize_t nbytes;
+  int ret;
 
   uinfo("chidx: %d buflen: %d\n",  (unsigned int)ep, buflen);