diff options
author | Mark Marshall <Mark.Marshall@omicron.at> | 2017-01-24 13:47:31 +0100 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-02-01 08:14:39 -0800 |
commit | de8c9317a891c1b30c465df1eb793c2861001919 (patch) | |
tree | c0f55ba00ec164221eebc7d2ee21f72f7f8d772a /arch/powerpc | |
parent | 2ec70961e7dc6548451822857aca5dc2573cee55 (diff) | |
download | u-boot-imx-de8c9317a891c1b30c465df1eb793c2861001919.zip u-boot-imx-de8c9317a891c1b30c465df1eb793c2861001919.tar.gz u-boot-imx-de8c9317a891c1b30c465df1eb793c2861001919.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/memcpy_mpc5200.c b/arch/powerpc/lib/memcpy_mpc5200.c index 75a3ef9..7e5a005 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: |