stm32h7: Fixes bug in stm32_sdmmc.c where DCACHE guards were blocking a needed variable.

This commit is contained in:
Anthony Merlino
2021-04-06 13:47:56 -04:00
committed by Xiang Xiao
parent 068e71d0c6
commit 3a10f88bdf
-2
View File
@@ -3034,9 +3034,7 @@ static int stm32_registercallback(FAR struct sdio_dev_s *dev,
static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
FAR const uint8_t *buffer, size_t buflen)
{
#if defined(CONFIG_ARMV7M_DCACHE) && !defined(CONFIG_ARMV7M_DCACHE_WRITETHROUGH)
struct stm32_dev_s *priv = (struct stm32_dev_s *)dev;
#endif
DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0);
/* IDMA must be possible to the buffer */