MLK-11949 mtd: gpmi: fix the typo in .bbm_in_data_chunk()
authorFugang Duan <b38611@freescale.com>
Thu, 3 Dec 2015 07:43:33 +0000 (15:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:28 +0000 (14:49 -0500)
Fix the typo in when check bch geometry ecc chunk0 and chunkn size.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c

index 597d40f..716574e 100644 (file)
@@ -192,7 +192,7 @@ static inline bool bbm_in_data_chunk(struct gpmi_nand_data *this,
        struct mtd_info *mtd = &this->nand.mtd;
        unsigned int i, j;
 
-       if (geo->ecc_chunk0_size != geo->ecc_chunk0_size) {
+       if (geo->ecc_chunk0_size != geo->ecc_chunkn_size) {
                dev_err(this->dev, "The size of chunk0 must equal to chunkn\n");
                return false;
        }