mtd: remove redundant assignment to pointer eb
Pointer eb is being assigned a value that is never read, 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/20200911102321.22515-1-colin.king@canonical.com
This commit is contained in:
parent
5c8fe583cc
commit
b81770a700
|
@ -1053,7 +1053,6 @@ static int mtdswap_writesect(struct mtd_blktrans_dev *dev,
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
eb = d->eb_data + (newblock / d->pages_per_eblk);
|
||||
d->page_data[page] = newblock;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue