forked from mirror/openwrt
Revert "kernel: mtdsplit_uimage: return 0 if not fatal"
This reverts commit a51359aafd.
Skipping parser for subpartition will be handled now with -ENOENT.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
2acf18bf4d
commit
8e6c6928da
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue