]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand_bbt: use string library
authorBrian Norris <computersforpeace@gmail.com>
Fri, 22 Jun 2012 23:35:44 +0000 (16:35 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 24 Aug 2012 08:03:35 +0000 (11:03 +0300)
commit1385549f949d6e396bd04c8e62a73c6a8865a180
treeb653a0994c0222a53f873de56fb13c30abd5b826
parent78e60182c07d141b4aecf33ff12d90c4eb8a6f72
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 possbile 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>
drivers/mtd/nand/nand_bbt.c