[PATCH 1/3] blackfin: Remove unneeded assignment

Alexander Shiyan shc_work at mail.ru
Sun Jul 7 08:27:15 EDT 2013


Assignment of function parameter has no effect outside the function.

Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 arch/blackfin/lib/bf533_string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/blackfin/lib/bf533_string.c b/arch/blackfin/lib/bf533_string.c
index ff9410f..860ee92 100644
--- a/arch/blackfin/lib/bf533_string.c
+++ b/arch/blackfin/lib/bf533_string.c
@@ -176,6 +176,6 @@ void *dma_memcpy(void * dest,const void *src,size_t count)
 		*pMDMA_D0_IRQ_STATUS |= (DMA_DONE | DMA_ERR);
 
 		dest += count;
-		src  += count;
+
 		return dest;
 }
-- 
1.8.1.5




More information about the barebox mailing list