xtensa: fix memscan
PATCH 1/1 xtensa: fix memscan
Define memscan as memchr is wrong. Because the return value of memscan and memchr are different when the character is not found. So use generic memscan implementation to fix it.
Signed-off-by Akinobu Mita <[email protected]>
Cc Chris Zankel <[email protected]>
--- arch/xtensa/include/asm/string.h | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
arch/xtensa/include/asm/string.h +0 -3
@@ -118,7 +118,4 @@ extern void *memmove(void *__dest, __const__ void *__src, size_t __n);/* Don't build bcopy at all ... */ #define __HAVE_ARCH_BCOPY -#define __HAVE_ARCH_MEMSCAN -#define memscan memchr -#endif /* _XTENSA_STRING_H */
Signature · 1 line
1.7.4.4