From: Mark Marshall Date: Tue, 24 Jan 2017 12:47:31 +0000 (+0100) Subject: powerpc: mpc5200: Correct return value of memcpy function X-Git-Tag: v2017.03-rc2~117^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de8c9317a891c1b30c465df1eb793c2861001919;p=u-boot powerpc: mpc5200: Correct return value of memcpy function The memcpy() function returns a pointer to trg. Signed-off-by: Mark Marshall Reviewed-by: Thomas Graziadei Reviewed-by: Anatolij Gustschin Reviewed-by: York Sun --- diff --git a/arch/powerpc/lib/memcpy_mpc5200.c b/arch/powerpc/lib/memcpy_mpc5200.c index 75a3ef9528..7e5a005789 100644 --- a/arch/powerpc/lib/memcpy_mpc5200.c +++ b/arch/powerpc/lib/memcpy_mpc5200.c @@ -31,7 +31,7 @@ void *memcpy(void *trg, const void *src, size_t len) extern void* __memcpy(void *, const void *, size_t); char *s = (char *)src; char *t = (char *)trg; - void *dest = (void *)src; + void *dest = (void *)trg; /* * Check is source address is in flash: