diff options
author | Kuniyuki Iwashima <kuniyu@amazon.co.jp> | 2022-01-23 11:01:00 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2022-01-30 17:44:34 +0900 |
commit | 862cf8d5fd98ed8ea8989726ed5da53761a9ed76 (patch) | |
tree | 25b280fc2cb298c5ea070deaa078aa15ab38bcc1 /arch/openrisc/lib | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) | |
download | linux-862cf8d5fd98ed8ea8989726ed5da53761a9ed76.tar.bz2 |
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>
Diffstat (limited to 'arch/openrisc/lib')
-rw-r--r-- | arch/openrisc/lib/memcpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/lib/memcpy.c b/arch/openrisc/lib/memcpy.c index fe2177628fd9..e2af9b510804 100644 --- a/arch/openrisc/lib/memcpy.c +++ b/arch/openrisc/lib/memcpy.c @@ -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 */ |