Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nios2: Remove unnecessary #ifdef guards

__HAVE_ARCH_MEMMOVE and __HAVE_ARCH_MEMSET are unconditionally defined
for nios2, so there is no need to protect the function definitions of
memmove() and memset().

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Ley Foon Tan <lftan@altera.com>

authored by

Tobias Klauser and committed by
Ley Foon Tan
bb3fc5dd 713e9b80

-4
-2
arch/nios2/lib/memmove.c
··· 10 10 #include <linux/types.h> 11 11 #include <linux/string.h> 12 12 13 - #ifdef __HAVE_ARCH_MEMMOVE 14 13 void *memmove(void *d, const void *s, size_t count) 15 14 { 16 15 unsigned long dst, src; ··· 78 79 79 80 return d; 80 81 } 81 - #endif /* __HAVE_ARCH_MEMMOVE */
-2
arch/nios2/lib/memset.c
··· 10 10 #include <linux/types.h> 11 11 #include <linux/string.h> 12 12 13 - #ifdef __HAVE_ARCH_MEMSET 14 13 void *memset(void *s, int c, size_t count) 15 14 { 16 15 int destptr, charcnt, dwordcnt, fill8reg, wrkrega; ··· 77 78 78 79 return s; 79 80 } 80 - #endif /* __HAVE_ARCH_MEMSET */