diff options
Diffstat (limited to 'drivers/mtd/nand/sunxi_nand.c')
-rw-r--r-- | drivers/mtd/nand/sunxi_nand.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index ccaa8e283388..6f93b2990d25 100644 --- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c | |||
@@ -1110,8 +1110,6 @@ static int sunxi_nand_ecc_init(struct mtd_info *mtd, struct nand_ecc_ctrl *ecc, | |||
1110 | 1110 | ||
1111 | switch (ecc->mode) { | 1111 | switch (ecc->mode) { |
1112 | case NAND_ECC_SOFT_BCH: | 1112 | case NAND_ECC_SOFT_BCH: |
1113 | ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * ecc->size), | ||
1114 | 8); | ||
1115 | break; | 1113 | break; |
1116 | case NAND_ECC_HW: | 1114 | case NAND_ECC_HW: |
1117 | ret = sunxi_nand_hw_ecc_ctrl_init(mtd, ecc, np); | 1115 | ret = sunxi_nand_hw_ecc_ctrl_init(mtd, ecc, np); |