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
This commit is contained in:
Colin Ian King 2021-09-10 13:00:23 +01:00 committed by Miquel Raynal
parent 6880fa6c56
commit b72841e4dc

View File

@ -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;