mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +00:00
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:
parent
e783362eb5
commit
862cf8d5fd
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue