diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-31 20:43:03 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-08-01 09:52:17 +0200 |
commit | ea6a3be62eb980313f009acdc6f4dafddf48a3b7 (patch) | |
tree | bdb710a237a546427afe321ca395b34e15991bf8 /target/linux/generic/files/drivers | |
parent | 532eb5f58109f310d6705d142422d8b2820bf654 (diff) | |
download | mtk-20170518-ea6a3be62eb980313f009acdc6f4dafddf48a3b7.zip mtk-20170518-ea6a3be62eb980313f009acdc6f4dafddf48a3b7.tar.gz mtk-20170518-ea6a3be62eb980313f009acdc6f4dafddf48a3b7.tar.bz2 |
kernel: silence a false positive uninitialized variable warning
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r-- | target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |