[U-Boot] [PATCH] mpc5200: Correct return value of memcpy function

Thomas Graziadei thomas.graziadei at omicronenergy.com
Wed Feb 8 07:40:35 UTC 2017


On 02/07/2017 05:59 PM, york sun wrote:
> On 01/24/2017 05:41 AM, thomas.graziadei at omicronenergy.com wrote:
>> From: Mark Marshall <Mark.Marshall at omicron.at>
>>
>> The memcpy() function returns a pointer to trg.
>>
>> Signed-off-by: Mark Marshall <Mark.Marshall at omicron.at>
>> Reviewed-by: Thomas Graziadei <thomas.graziadei at omicronenergy.com>
>> ---
>>   arch/powerpc/lib/memcpy_mpc5200.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> 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:
>>
> Looks like this is a duplicated patch.
Yes this is a duplicate.
>
> York
thanks,
Thomas


More information about the U-Boot mailing list