kernel: generic: mtdsplit_seil: return 0 instead of -ENODEV
authorINAGAKI Hiroshi <[email protected]>
Sat, 8 Nov 2025 05:35:30 +0000 (14:35 +0900)
committerHauke Mehrtens <[email protected]>
Sat, 8 Nov 2025 20:36:29 +0000 (21:36 +0100)
commit5aab294726f35d8515945484cbee951655cdfe90
tree151103bb226d185eff7c7fcccf0d81dd5e35a7d2
parent0334564ea663174823547d751312843c52b33696
kernel: generic: mtdsplit_seil: return 0 instead of -ENODEV

Return 0 if the current mtd is inactive or no valid header/rootfs found,
instead of -ENODEV.
Linux Kernel 6.7 and later versions handle all errors returned by mtd
parsers, including -ENODEV as error. So '0' needs to be returned if no
child partitions were not parsed.

Signed-off-by: INAGAKI Hiroshi <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20697
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seil.c