[source] kernel: silence a false positive uninitialized variable warning
LEDE Commits
lede-commits at lists.infradead.org
Mon Aug 1 00:52:19 PDT 2016
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=ea6a3be62eb980313f009acdc6f4dafddf48a3b7
commit ea6a3be62eb980313f009acdc6f4dafddf48a3b7
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sun Jul 31 20:43:03 2016 +0200
kernel: silence a false positive uninitialized variable warning
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 c088772..1f4325a 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) {
More information about the lede-commits
mailing list