openrisc/boot: Remove unnecessary initialisation in memcpy().

'd' and 's' are initialised later with 'dest_w' and 'src_w', so we need not
initialise them before that.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Stafford Horne <shorne@gmail.com>
This commit is contained in:
Kuniyuki Iwashima 2022-01-23 11:01:00 +09:00 committed by Stafford Horne
parent e783362eb5
commit 862cf8d5fd

View File

@ -101,7 +101,7 @@ void *memcpy(void *dest, __const void *src, __kernel_size_t n)
*/
void *memcpy(void *dest, __const void *src, __kernel_size_t n)
{
unsigned char *d = (unsigned char *)dest, *s = (unsigned char *)src;
unsigned char *d, *s;
uint32_t *dest_w = (uint32_t *)dest, *src_w = (uint32_t *)src;
/* If both source and dest are word aligned copy words */