mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
kernel: silence a false positive uninitialized variable warning
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
532eb5f581
commit
ea6a3be62e
@ -34,7 +34,7 @@ static int mtdsplit_parse_brnimage(struct mtd_info *master,
|
|||||||
uint32_t buf;
|
uint32_t buf;
|
||||||
unsigned long rootfs_offset, rootfs_size, kernel_size;
|
unsigned long rootfs_offset, rootfs_size, kernel_size;
|
||||||
size_t len;
|
size_t len;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
for (rootfs_offset = 0; rootfs_offset < master->size;
|
for (rootfs_offset = 0; rootfs_offset < master->size;
|
||||||
rootfs_offset += BRNIMAGE_ALIGN_BYTES) {
|
rootfs_offset += BRNIMAGE_ALIGN_BYTES) {
|
||||||
|
Loading…
Reference in New Issue
Block a user