1
0
Fork 0

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
zero-sugar-mainline-defconfig
Colin Ian King 2020-09-10 16:44:51 +01:00 committed by Miquel Raynal
parent c1cf1d57d1
commit 1840ff8d42
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}