mISDN: use memchr_inv
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 27 Jan 2012 04:24:55 +0000 (04:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2012 19:15:32 +0000 (14:15 -0500)
commitb5d5843a1dd0031d63d9d9484346d86eae9cab3b
tree9b10561d8452ab3610df5737d086193db04aa4f5
parent658ddaaf6694adf63f67451dec9ddeb87a7cb2d7
mISDN: use memchr_inv

Use memchr_inv to check if the data contains all same bytes.  It is
faster than looping for each byte.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/l1oip_core.c