mtd: cleanup mtd_oobtest
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 9 Oct 2009 09:43:52 +0000 (18:43 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 17 Oct 2009 14:39:48 +0000 (15:39 +0100)
commitf54d6336372b97d3624d1c5c179b2dd062472bd1
treeb3273e94befaa95785717498c2df0cdeda2a50ea
parent5a134239e707b23c65948f41f40b828d40e440af
mtd: cleanup mtd_oobtest

- Remove unnecessary memset for bbt
  All entries will be initialized at a few lines below
- Remove unnecessary initialization for mtd->erasesize
- Use write_whole_device()

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/tests/mtd_oobtest.c