Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <akinobu.mita@gmail.com>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 070f420b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 */