diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-09-10 13:00:23 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-09-14 19:36:34 +0200 |
commit | b72841e4dcd54de486fca2e4ffa00b8defc1eecc (patch) | |
tree | d4b09b3acd4bf3053d727591ac8359990835b1c1 | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
mtd: mtdswap: Remove redundant assignment of pointer eb
The pointer eb is being assigned a value that is never read, it is
being updated later on. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210910120023.46308-1-colin.king@canonical.com
-rw-r--r-- | drivers/mtd/mtdswap.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index 7e309270ddd4..e86b04bc1d6b 100644 --- a/drivers/mtd/mtdswap.c +++ b/drivers/mtd/mtdswap.c @@ -716,7 +716,6 @@ retry: return ret; } - eb = d->eb_data + *newblock / d->pages_per_eblk; d->page_data[page] = *newblock; d->revmap[oldblock] = PAGE_UNDEF; eb = d->eb_data + oldblock / d->pages_per_eblk; |