mtd: rawnand: remove redundant assignment to variable bbtblocks
authorColin Ian King <colin.i.king@gmail.com>
Fri, 9 Feb 2024 17:40:19 +0000 (17:40 +0000)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Feb 2024 10:36:11 +0000 (11:36 +0100)
commit9367043f1c02a1e4bc3ee50df2772c7c557ce617
treec977112f067f5e21df33a0e8732d5737026bfc60
parent4bd14b2fd8a83a2f5220ba4ef323f741e11bfdfd
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
drivers/mtd/nand/raw/nand_bbt.c