You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/03 21:26:01 UTC
[incubator-nuttx] branch master updated: stm32f7/h7 spi add missing
ret declaration
This is an automated email from the ASF dual-hosted git repository.
gnutt 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 4fa26d3 stm32f7/h7 spi add missing ret declaration
4fa26d3 is described below
commit 4fa26d34d6d1ef67f0958ee81a8115a34af3b8f1
Author: Daniel Agar <da...@agar.ca>
AuthorDate: Fri Apr 3 16:57:15 2020 -0400
stm32f7/h7 spi add missing ret declaration
---
arch/arm/src/stm32f7/stm32_spi.c | 2 ++
arch/arm/src/stm32h7/stm32_spi.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/arch/arm/src/stm32f7/stm32_spi.c b/arch/arm/src/stm32f7/stm32_spi.c
index 31c70b6..ebd6da7 100644
--- a/arch/arm/src/stm32f7/stm32_spi.c
+++ b/arch/arm/src/stm32f7/stm32_spi.c
@@ -1786,6 +1786,8 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
{
FAR struct stm32_spidev_s *priv = (FAR struct stm32_spidev_s *)dev;
FAR void * xbuffer = rxbuffer;
+ int ret;
+
DEBUGASSERT(priv != NULL);
/* Convert the number of word to a number of bytes */
diff --git a/arch/arm/src/stm32h7/stm32_spi.c b/arch/arm/src/stm32h7/stm32_spi.c
index 8c304b5..3387532 100644
--- a/arch/arm/src/stm32h7/stm32_spi.c
+++ b/arch/arm/src/stm32h7/stm32_spi.c
@@ -1812,6 +1812,8 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
{
FAR struct stm32_spidev_s *priv = (FAR struct stm32_spidev_s *)dev;
FAR void * xbuffer = rxbuffer;
+ int ret;
+
DEBUGASSERT(priv != NULL);
/* Convert the number of word to a number of bytes */