1
0
Fork 0
forked from mirror/openwrt

Revert "kernel: generic: mtdsplit_seil: return 0 instead of -ENODEV"

This reverts commit 5aab294726.

Skipping parser for subpartition will be handled now with -ENOENT.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi 2025-11-20 23:18:08 +01:00
parent d2fa070f70
commit 730b3872fe
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7

View file

@ -112,7 +112,7 @@ static int mtdsplit_parse_seil_fw(struct mtd_info *master,
u64 id;
if (!seil_bootdev_is_active(np))
return 0;
return -ENODEV;
ret = of_property_read_u64(np, "iij,seil-id", &id);
if (ret) {
@ -137,7 +137,7 @@ static int mtdsplit_parse_seil_fw(struct mtd_info *master,
if (be64_to_cpu(header.id) != id ||
be32_to_cpu(header.vfmt) != SEIL_VFMT) {
pr_debug("no valid seil image found in \"%s\"\n", master->name);
ret = 0;
ret = -ENODEV;
goto err_free_parts;
}
@ -154,7 +154,7 @@ static int mtdsplit_parse_seil_fw(struct mtd_info *master,
if (ret || (master->size - rootfs_offset) == 0) {
pr_debug("no rootfs after seil image in \"%s\"\n",
master->name);
ret = 0;
ret = -ENODEV;
goto err_free_parts;
}