Commit a1b58c23 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

xtensa: fix memscan()

Defining memscan() as memchr() is wrong, because the return values of
memscan() and memchr() are different when the character is not found.  So
use the generic memscan() implementation to fix this.
Signed-off-by: default avatarAkinobu Mita <>
Cc: Chris Zankel <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 070f420b
...@@ -118,7 +118,4 @@ extern void *memmove(void *__dest, __const__ void *__src, size_t __n); ...@@ -118,7 +118,4 @@ extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
/* Don't build bcopy at all ... */ /* Don't build bcopy at all ... */
#define memscan memchr
#endif /* _XTENSA_STRING_H */ #endif /* _XTENSA_STRING_H */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment