]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit180b305abdbaa5922574250247ae350973baed4e
treeb3273e94befaa95785717498c2df0cdeda2a50ea
parentcdbc2d672d82c732d609beb4b6193a3d0860f8e0
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