Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Colin Ian King and committed by
Miquel Raynal
1840ff8d c1cf1d57

-1
-1
drivers/mtd/mtdconcat.c
··· 114 114 size_t size, retsize; 115 115 116 116 if (to >= subdev->size) { 117 - size = 0; 118 117 to -= subdev->size; 119 118 continue; 120 119 }