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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:34:36 +0000 (21:34 +0100)
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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

No differences found