SAMDL DMAC: Fix several places in DMA logic where a spurious semicolon causes bad conditional logic

This commit is contained in:
Gregory Nutt
2016-05-11 17:30:04 -06:00
parent f07ea1bb94
commit f64f7407ba
+2 -2
View File
@@ -986,7 +986,7 @@ int sam_dmatxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr,
/* Set up the maximum size transfer */
ret = sam_txbuffer(dmach, paddr, maddr, maxtransfer);
if (ret == OK);
if (ret == OK)
{
/* Decrement the number of bytes left to transfer */
@@ -1060,7 +1060,7 @@ int sam_dmarxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr,
/* Set up the maximum size transfer */
ret = sam_rxbuffer(dmach, paddr, maddr, maxtransfer);
if (ret == OK);
if (ret == OK)
{
/* Decrement the number of bytes left to transfer */