SAM (all): Fix several places in DMA logic where a spurious semicolon causes bad conditional logic
This commit is contained in:
parent
1ac3d2128a
commit
f07ea1bb94
@ -1554,7 +1554,7 @@ int sam_dmatxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr, size_t nby
|
||||
/* 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 */
|
||||
|
||||
@ -1622,7 +1622,7 @@ int sam_dmarxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr, size_t nby
|
||||
/* 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 */
|
||||
|
||||
|
@ -2159,7 +2159,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 */
|
||||
|
||||
@ -2238,7 +2238,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 */
|
||||
|
||||
|
@ -2205,7 +2205,7 @@ int sam_dmatxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr,
|
||||
/* Set up the maximum size transfer */
|
||||
|
||||
ret = sam_txbuffer(xdmach, paddr, maddr, maxtransfer);
|
||||
if (ret == OK);
|
||||
if (ret == OK)
|
||||
{
|
||||
/* Decrement the number of bytes left to transfer */
|
||||
|
||||
@ -2284,7 +2284,7 @@ int sam_dmarxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr,
|
||||
/* Set up the maximum size transfer */
|
||||
|
||||
ret = sam_rxbuffer(xdmach, paddr, maddr, maxtransfer);
|
||||
if (ret == OK);
|
||||
if (ret == OK)
|
||||
{
|
||||
/* Decrement the number of bytes left to transfer */
|
||||
|
||||
|
@ -1888,7 +1888,7 @@ int sam_dmarxsetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr,
|
||||
/* Set up the maximum size transfer */
|
||||
|
||||
ret = sam_rxbuffer(xdmach, paddr, maddr, maxtransfer);
|
||||
if (ret == OK);
|
||||
if (ret == OK)
|
||||
{
|
||||
/* Decrement the number of bytes left to transfer */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user