SAM (all): 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:26:59 -06:00
parent 1ac3d2128a
commit f07ea1bb94
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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 */
+2 -2
View File
@@ -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 */
+2 -2
View File
@@ -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 */
+1 -1
View File
@@ -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 */