mtd: nand_bbt: use string library
authorBrian Norris <computersforpeace@gmail.com>
Fri, 22 Jun 2012 23:35:44 +0000 (16:35 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 13:51:13 +0000 (14:51 +0100)
commit491ed06f334955578f0c43d298c46ea1a7ea9e1b
tree0522c7baadf16d60488c1861eef084b91c0b9b6f
parent7b5a2d40978fbb046b99b4030ce2785b66a451a5
mtd: nand_bbt: use string library

Some nand_bbt code can be shortened by using memcmp() and memchr_inv().
As an added bonus, there is a possible performance benefit.

Borrowed some code from Akinobu Mita.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_bbt.c