Revert "kernel: mtdsplit_uimage: return 0 if not fatal"
authorChristian Marangi <[email protected]>
Thu, 20 Nov 2025 22:28:44 +0000 (23:28 +0100)
committerChristian Marangi <[email protected]>
Thu, 20 Nov 2025 22:42:11 +0000 (23:42 +0100)
This reverts commit a51359aafde18b7e809842b4b4c31c78f5fa0c51.

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

Signed-off-by: Christian Marangi <[email protected]>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c

index 9bb55fc6b1f02e3ca15d66aa78e09fc1ac7dbb58..29af19f5441c4818efdcacb6b4eb74d766322d2a 100644 (file)
@@ -201,8 +201,8 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
                ret = mtd_find_rootfs_from(master, uimage_offset + uimage_size,
                                           master->size, &rootfs_offset, &type);
                if (ret) {
-                       pr_info("no rootfs after uImage in \"%s\"\n", master->name);
-                       ret = 0;
+                       pr_debug("no rootfs after uImage in \"%s\"\n",
+                                master->name);
                        goto err_free_buf;
                }
 
@@ -215,8 +215,8 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
                /* check rootfs presence at offset 0 */
                ret = mtd_check_rootfs_magic(master, 0, &type);
                if (ret) {
-                       pr_info("no rootfs before uImage in \"%s\"\n", master->name);
-                       ret = 0;
+                       pr_debug("no rootfs before uImage in \"%s\"\n",
+                                master->name);
                        goto err_free_buf;
                }