projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c8fe58
)
mtd: remove redundant assignment to pointer eb
author
Colin Ian King
<colin.king@canonical.com>
Fri, 11 Sep 2020 10:23:21 +0000
(11:23 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 12:45:23 +0000
(13:45 +0100)
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
drivers/mtd/mtdswap.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdswap.c
b/drivers/mtd/mtdswap.c
index 58eefa43af141428fad669b79d80267e4fff3d21..795dec4483c217e34078bbd3488b5066c722e2c7 100644
(file)
--- 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;