summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorBrian Norris2013-07-31 02:52:56 +0200
committerDavid Woodhouse2013-08-30 17:43:44 +0200
commitb4d20d601f1e2bbab46d25217303ccefe11e263e (patch)
tree6b1635ffb97cb0dbf92fb76b775667805650529a /drivers/mtd/nand/nand_base.c
parentmtd: nand: add accessors, macros for in-memory BBT (diff)
downloadkernel-qcow2-linux-b4d20d601f1e2bbab46d25217303ccefe11e263e.tar.gz
kernel-qcow2-linux-b4d20d601f1e2bbab46d25217303ccefe11e263e.tar.xz
kernel-qcow2-linux-b4d20d601f1e2bbab46d25217303ccefe11e263e.zip
mtd: nand: remove multiplied-by-2 block logic
The parent commit 771c568bcf915e708ae819ef9d07d862f7e2da86 ("mtd: nand: add accessors, macros for in-memory BBT") makes the following comment obsolete: /* * Note that numblocks is 2 * (real numblocks) here, see i+=2 * below as it makes shifting and masking less painful */ I don't think it ever could have been "less painful" to have to shift an extra bit (or 2, or 3) at various points in nand_bbt.c (and even outside, since we leak our in-memory format). But now it is certainly more painful, since we have nice macros and functions to retrieve the relevant portions of the BBT. This patch removes any points where the block number is doubled/halved/otherwise-shifted, instead representing the block number in its most natural form: as the actual block number. 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/mtd/nand/nand_base.c')
0 files changed, 0 insertions, 0 deletions