From: Colin Ian King Date: Thu, 10 Sep 2020 15:44:51 +0000 (+0100) Subject: mtd: mtdconcat: map: remove redundant assignment to variable 'size' X-Git-Tag: v5.10-rc1~94^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1840ff8d426122a06e849b805b5c5095ff4a59ee;p=thirdparty%2Flinux.git 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 Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200910154451.752569-1-colin.king@canonical.com --- diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c index 242c3a6600022..6e4d0017c0bd4 100644 --- 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; }