kernel: mtdsplit_uimage: use -ENOENT instead of -ENODEV

New linux version will check the return code of parser on subpartitions.
The only valid case for skipping a parser with an error is -ENOENT.

Change the relevant entry to -ENOENT.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi 2025-11-20 23:30:32 +01:00
parent 8e6c6928da
commit d21262edcf
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -217,6 +217,7 @@ static int __mtdsplit_parse_uimage(struct mtd_info *master,
if (ret) {
pr_debug("no rootfs before uImage in \"%s\"\n",
master->name);
ret = -ENOENT;
goto err_free_buf;
}