Skip to content

Commit b72841e

Browse files
Colin Ian Kingmiquelraynal
authored andcommitted
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 <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 6880fa6 commit b72841e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mtd/mtdswap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,6 @@ static int mtdswap_move_block(struct mtdswap_dev *d, unsigned int oldblock,
716716
return ret;
717717
}
718718

719-
eb = d->eb_data + *newblock / d->pages_per_eblk;
720719
d->page_data[page] = *newblock;
721720
d->revmap[oldblock] = PAGE_UNDEF;
722721
eb = d->eb_data + oldblock / d->pages_per_eblk;

0 commit comments

Comments
 (0)