]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: atmel_nand: move the sanity check to the beginning of pmecc_enable()
authorJosh Wu <josh.wu@atmel.com>
Wed, 7 Aug 2013 09:58:11 +0000 (17:58 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 8 Aug 2013 06:17:06 +0000 (23:17 -0700)
commite5829d0f5cdf6409fa5537462aba5f629238941d
tree77b892f9e8b4b4dc4404472ed0e6416593849fa1
parent74e610967a8ec4febd33fa39206dbe118d9a2903
mtd: atmel_nand: move the sanity check to the beginning of pmecc_enable()

It is better to do the sanity check for the parameter before any hardware
operation.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/atmel_nand.c