diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-11-06 01:19:11 -0500 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2015-11-08 21:33:30 -0500 |
commit | bb3fc5ddef93836a36a39308cf7eca82ef0a1c4c (patch) | |
tree | b1120a5bcd13d677c635918c2b52814f33f1ac94 /arch/nios2/lib/memset.c | |
parent | 713e9b802e21e762f31336da72bcfc32e1ab65ac (diff) |
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>
Diffstat (limited to 'arch/nios2/lib/memset.c')
-rw-r--r-- | arch/nios2/lib/memset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/nios2/lib/memset.c b/arch/nios2/lib/memset.c index 65e97802f5cc..c2cfcb121e34 100644 --- a/arch/nios2/lib/memset.c +++ b/arch/nios2/lib/memset.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
11 | #include <linux/string.h> | 11 | #include <linux/string.h> |
12 | 12 | ||
13 | #ifdef __HAVE_ARCH_MEMSET | ||
14 | void *memset(void *s, int c, size_t count) | 13 | void *memset(void *s, int c, size_t count) |
15 | { | 14 | { |
16 | int destptr, charcnt, dwordcnt, fill8reg, wrkrega; | 15 | int destptr, charcnt, dwordcnt, fill8reg, wrkrega; |
@@ -78,4 +77,3 @@ void *memset(void *s, int c, size_t count) | |||
78 | 77 | ||
79 | return s; | 78 | return s; |
80 | } | 79 | } |
81 | #endif /* __HAVE_ARCH_MEMSET */ | ||