Skip to contentSkip to conversation

xtensa: fix memscan

PATCH New Akinobu Mita 1 participant 1 message Jan 22, 2012 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore
#0 lore raw

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.

---
 arch/xtensa/include/asm/string.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
arch/xtensa/include/asm/string.h +0 -3
index 5fb8c27..405a8c4 100644
@@ -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