mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +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
@ -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…
Reference in New Issue
Block a user