forked from Minki/linux
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:
parent
6880fa6c56
commit
b72841e4dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user