diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-02-09 20:40:19 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2024-02-26 13:36:11 +0300 |
commit | 9367043f1c02a1e4bc3ee50df2772c7c557ce617 (patch) | |
tree | c977112f067f5e21df33a0e8732d5737026bfc60 /drivers | |
parent | 4bd14b2fd8a83a2f5220ba4ef323f741e11bfdfd (diff) | |
download | linux-9367043f1c02a1e4bc3ee50df2772c7c557ce617.tar.xz |
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 <colin.i.king@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240209174019.3933233-1-colin.i.king@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/raw/nand_bbt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c index e4664fa6fd9e..a8fba5f39f59 100644 --- a/drivers/mtd/nand/raw/nand_bbt.c +++ b/drivers/mtd/nand/raw/nand_bbt.c @@ -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++) { |