mirror of
https://github.com/apache/nuttx.git
synced 2026-09-11 21:20:10 +00:00
SAMDL DMAC: Fix several places in DMA logic where a spurious semicolon causes bad conditional logic
This commit is contained in:
parent
f07ea1bb94
commit
f64f7407ba
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue