]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xtensa: fix memscan()
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 3 Feb 2012 23:37:13 +0000 (15:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 4 Feb 2012 00:16:40 +0000 (16:16 -0800)
commita1b58c237b73f10221b31e05b47a6565558207ef
treead0651849cc19bb894a3f7d312df4e0c54e6bbd8
parent070f420b35a2c078ca2bd2a0d31dd7b5001d411c
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: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/xtensa/include/asm/string.h