summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMark Marshall <Mark.Marshall@omicron.at>2017-01-24 13:47:31 +0100
committerYork Sun <york.sun@nxp.com>2017-02-01 08:14:39 -0800
commitde8c9317a891c1b30c465df1eb793c2861001919 (patch)
treec0f55ba00ec164221eebc7d2ee21f72f7f8d772a /arch/powerpc
parent2ec70961e7dc6548451822857aca5dc2573cee55 (diff)
powerpc: mpc5200: Correct return value of memcpy function
The memcpy() function returns a pointer to trg. Signed-off-by: Mark Marshall <Mark.Marshall@omicron.at> Reviewed-by: Thomas Graziadei <thomas.graziadei@omicronenergy.com> Reviewed-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/lib/memcpy_mpc5200.c2
1 files changed, 1 insertions, 1 deletions
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: