projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1cf1d5
)
mtd: mtdconcat: map: remove redundant assignment to variable 'size'
author
Colin Ian King
<colin.king@canonical.com>
Thu, 10 Sep 2020 15:44:51 +0000
(16:44 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 11 Sep 2020 16:49:34 +0000
(18:49 +0200)
Variable 'size' is being assigned the value zero that will never be
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/20200910154451.752569-1-colin.king@canonical.com
drivers/mtd/mtdconcat.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdconcat.c
b/drivers/mtd/mtdconcat.c
index
242c3a6
..
6e4d001
100644
(file)
--- a/
drivers/mtd/mtdconcat.c
+++ b/
drivers/mtd/mtdconcat.c
@@
-114,7
+114,6
@@
concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len,
size_t size, retsize;
if (to >= subdev->size) {
- size = 0;
to -= subdev->size;
continue;
}