Blackfin arch: dma_memcpy() - do not return NULL when transferring a multiple of 65k

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
Mike Frysinger 2009-01-07 23:14:38 +08:00 committed by Bryan Wu
parent 85a192e92d
commit bdc17a1bf2
1 changed files with 2 additions and 2 deletions

View 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);