From: Felix Fietkau Date: Sun, 31 Jul 2016 18:43:03 +0000 (+0200) Subject: kernel: silence a false positive uninitialized variable warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ea6a3be62eb980313f009acdc6f4dafddf48a3b7;p=openwrt%2Fstaging%2Fynezz.git kernel: silence a false positive uninitialized variable warning Signed-off-by: Felix Fietkau --- diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c index c0887722d7..1f4325ac9a 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c @@ -34,7 +34,7 @@ static int mtdsplit_parse_brnimage(struct mtd_info *master, uint32_t buf; unsigned long rootfs_offset, rootfs_size, kernel_size; size_t len; - int ret; + int ret = 0; for (rootfs_offset = 0; rootfs_offset < master->size; rootfs_offset += BRNIMAGE_ALIGN_BYTES) {