[PATCH][MTD]Remove dead code
Bruce_Leonard at selinc.com
Bruce_Leonard at selinc.com
Wed Jun 18 13:52:26 EDT 2008
As near as I can tell this line of code serves no usefull purpose, so I
removed it.
Signed-off-by: Bruce Leonard <brucle at selinc.com>
---
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index 5e121ce..2733e04 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -1029,7 +1029,6 @@ int nand_update_bbt(struct mtd_info *mtd, loff_t
offs)
if (!this->bbt || !td)
return -EINVAL;
- len = mtd->size >> (this->bbt_erase_shift + 2);
/* Allocate a temporary buffer for one eraseblock incl. oob */
len = (1 << this->bbt_erase_shift);
len += (len >> this->page_shift) * mtd->oobsize;
More information about the linux-mtd
mailing list