mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
SAMDL DMAC: Fix several places in DMA logic where a spurious semicolon causes bad conditional logic
This commit is contained in:
@@ -986,7 +986,7 @@ int sam_dmatxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr,
|
|||||||
/* Set up the maximum size transfer */
|
/* Set up the maximum size transfer */
|
||||||
|
|
||||||
ret = sam_txbuffer(dmach, paddr, maddr, maxtransfer);
|
ret = sam_txbuffer(dmach, paddr, maddr, maxtransfer);
|
||||||
if (ret == OK);
|
if (ret == OK)
|
||||||
{
|
{
|
||||||
/* Decrement the number of bytes left to transfer */
|
/* 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 */
|
/* Set up the maximum size transfer */
|
||||||
|
|
||||||
ret = sam_rxbuffer(dmach, paddr, maddr, maxtransfer);
|
ret = sam_rxbuffer(dmach, paddr, maddr, maxtransfer);
|
||||||
if (ret == OK);
|
if (ret == OK)
|
||||||
{
|
{
|
||||||
/* Decrement the number of bytes left to transfer */
|
/* Decrement the number of bytes left to transfer */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user