@@ -30,22 +30,7 @@
3030#include <linux/compiler.h>
3131#include <linux/string.h>
323233-#ifdef __HAVE_ARCH_MEMSET
34-#ifndef CONFIG_OPT_LIB_FUNCTION
35-void *memset(void *v_src, int c, __kernel_size_t n)
36-{
37-char *src = v_src;
38-39-/* Truncate c to 8 bits */
40-c = (c & 0xFF);
41-42-/* Simple, byte oriented memset or the rest of count. */
43-while (n--)
44-*src++ = c;
45-46-return v_src;
47-}
48-#else /* CONFIG_OPT_LIB_FUNCTION */
33+#ifdef CONFIG_OPT_LIB_FUNCTION
4934void *memset(void *v_src, int c, __kernel_size_t n)
5035{
5136char *src = v_src;
@@ -94,6 +79,5 @@ void *memset(void *v_src, int c, __kernel_size_t n)
94799580return v_src;
9681}
97-#endif /* CONFIG_OPT_LIB_FUNCTION */
9882EXPORT_SYMBOL(memset);
99-#endif /* __HAVE_ARCH_MEMSET */
83+#endif /* CONFIG_OPT_LIB_FUNCTION */