aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/dma.c')
-rw-r--r--libmaple/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/dma.c b/libmaple/dma.c
index 04cdcea..57baa13 100644
--- a/libmaple/dma.c
+++ b/libmaple/dma.c
@@ -244,9 +244,9 @@ dma_irq_cause dma_get_irq_cause(dma_dev *dev, dma_channel channel) {
* order to fail fast, mimic the DMA controller's behavior
* when an error occurs. */
dma_disable(dev, channel);
- return DMA_TRANSFER_ERROR;
}
#endif
+ return DMA_TRANSFER_ERROR;
}
/**