Skip to content

Commit 1840ff8

Browse files
Colin Ian Kingmiquelraynal
authored andcommitted
mtd: mtdconcat: map: remove redundant assignment to variable 'size'
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
1 parent c1cf1d5 commit 1840ff8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/mtd/mtdconcat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len,
114114
size_t size, retsize;
115115

116116
if (to >= subdev->size) {
117-
size = 0;
118117
to -= subdev->size;
119118
continue;
120119
}

0 commit comments

Comments
 (0)