Skip to content

Commit 9367043

Browse files
ColinIanKingmiquelraynal
authored andcommitted
mtd: rawnand: remove redundant assignment to variable bbtblocks
The variable bbtblocks is being assigned a value that is never read. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/mtd/nand/raw/nand_bbt.c:579:3: warning: Value stored to 'bbtblocks' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 4bd14b2 commit 9367043

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mtd/nand/raw/nand_bbt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ static int search_bbt(struct nand_chip *this, uint8_t *buf,
576576
startblock &= bbtblocks - 1;
577577
} else {
578578
chips = 1;
579-
bbtblocks = mtd->size >> this->bbt_erase_shift;
580579
}
581580

582581
for (i = 0; i < chips; i++) {

0 commit comments

Comments
 (0)