Merge tag 'trace-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux...
[sfrench/cifs-2.6.git] / drivers / mtd / nand / raw / nand_bbt.c
index e4664fa6fd9ef2b199f07a27c05f5299b6c5a2ec..a8fba5f39f591ca3a24f408b88c1b01bb8c0ac29 100644 (file)
@@ -576,7 +576,6 @@ static int search_bbt(struct nand_chip *this, uint8_t *buf,
                startblock &= bbtblocks - 1;
        } else {
                chips = 1;
-               bbtblocks = mtd->size >> this->bbt_erase_shift;
        }
 
        for (i = 0; i < chips; i++) {