提交 bb3fc5dd 编写于 作者: T Tobias Klauser 提交者: Ley Foon Tan

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: NTobias Klauser <tklauser@distanz.ch>
Acked-by: NLey Foon Tan <lftan@altera.com>
上级 713e9b80
......@@ -10,7 +10,6 @@
#include <linux/types.h>
#include <linux/string.h>
#ifdef __HAVE_ARCH_MEMMOVE
void *memmove(void *d, const void *s, size_t count)
{
unsigned long dst, src;
......@@ -79,4 +78,3 @@ void *memmove(void *d, const void *s, size_t count)
return d;
}
#endif /* __HAVE_ARCH_MEMMOVE */
......@@ -10,7 +10,6 @@
#include <linux/types.h>
#include <linux/string.h>
#ifdef __HAVE_ARCH_MEMSET
void *memset(void *s, int c, size_t count)
{
int destptr, charcnt, dwordcnt, fill8reg, wrkrega;
......@@ -78,4 +77,3 @@ void *memset(void *s, int c, size_t count)
return s;
}
#endif /* __HAVE_ARCH_MEMSET */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册