Blackfin arch: dma_memcpy() - do not return NULL when transferring a multiple of 65k
authorMike Frysinger <vapier.adi@gmail.com>
Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/bfin_dma_5xx.c

index ad93684..1882fd8 100644 (file)
@@ -597,8 +597,8 @@ void *dma_memcpy(void *dest, const void *src, size_t size)
        rest = size - bulk;
        if (bulk)
                __dma_memcpy(dest, src, bulk);
-       addr = __dma_memcpy(dest+bulk, src+bulk, rest);
-       return addr;
+       __dma_memcpy(dest+bulk, src+bulk, rest);
+       return dest;
 }
 EXPORT_SYMBOL(dma_memcpy);