summaryrefslogtreecommitdiff
path: root/drivers/edac/x38_edac.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-01-20 20:38:03 -0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 00:16:04 +0100
commitdf698621a5b39ced5ce527444cafd50c6fdc186d (patch)
treeae3316d7790e13ac7412309b9ca2ba8dde95c118 /drivers/edac/x38_edac.c
parentf0e0c09b88b23ec418c065739096e198e8d6be22 (diff)
mtd: nand: move SCANLASTPAGE handling to the correct code block
As nand_default_block_markbad() is becoming more complex, it helps to have code appear only in its relevant codepath(s). Here, the calculation of `ofs' based on NAND_BBT_SCANLASTPAGE is only useful on paths where we write bad block markers to OOB. We move the condition/calculation closer to the `write' operation and update the comment to more correctly describe the operation. The variable `wr_ofs' is also used to help isolate our calculation of the "write" offset from the usage of `ofs' to represent the eraseblock offset. This will become useful when we reorder operations in the next patch. This patch should make no functional change. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/edac/x38_edac.c')
0 files changed, 0 insertions, 0 deletions