Merge tag 'nand/for-4.17' of git://git.infradead.org/linux-mtd into mtd/next
[muen/linux.git] / drivers / mtd / nand / raw / nand_bbt.c
index 36092850be2c10b1e54c5dbf3d7d92e4b6ae54ed..d9f4ceff25682f98e4143912ad80b1d6dfdb42a2 100644 (file)
@@ -852,7 +852,6 @@ static int write_bbt(struct mtd_info *mtd, uint8_t *buf,
                }
 
                memset(&einfo, 0, sizeof(einfo));
-               einfo.mtd = mtd;
                einfo.addr = to;
                einfo.len = 1 << this->bbt_erase_shift;
                res = nand_erase_nand(mtd, &einfo, 1);