summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-09-11 13:23:21 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-01-27 15:45:23 +0300
commitb81770a7007c4286880ed4b182e22b1897f27cfe (patch)
tree4f5b6484630d4a172d2ff3e7996eb245a7f88776 /drivers/mtd
parent5c8fe583cce542aa0b84adc939ce85293de36e5e (diff)
downloadlinux-b81770a7007c4286880ed4b182e22b1897f27cfe.tar.xz
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
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtdswap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c
index 58eefa43af14..795dec4483c2 100644
--- a/drivers/mtd/mtdswap.c
+++ b/drivers/mtd/mtdswap.c
@@ -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;