mtd: nftl: remove redundant variable nb_erases
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Jul 2018 06:46:09 +0000 (07:46 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sat, 7 Jul 2018 08:55:05 +0000 (10:55 +0200)
commitfb60e87dc4aa415f9d797c5df522eb9578366359
tree75843b4b12361cfb1124dc5c2dffbb168815223d
parent0219ef1ce577b85a859559c43458c52ca7f29586
mtd: nftl: remove redundant variable nb_erases

Variable nb_erases is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 'nb_erases' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nftlmount.c