kernel: mtdsplit_h3c_vfs: Fix build

Fix a recently introduces compile problem.

Fixes: 2acf18bf4d ("kernel: mtdsplit_h3c_vfs: use -ENOENT instead of -ENODEV")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens 2025-11-21 21:33:26 +01:00
parent 7f5c7b8626
commit 4f8f0bfeef

View File

@ -98,10 +98,11 @@ static int mtdsplit_h3c_vfs_parse(struct mtd_info *mtd,
if (retlen != sizeof(format_flag))
return -EIO;
if (format_flag != FORMAT_FLAG)
if (format_flag != FORMAT_FLAG) {
pr_debug("mtdsplit_h3c_vfs: unexpected format flag %08x\n",
format_flag);
return -ENOENT;
}
/* Check file entry */
err = mtd_read(mtd, FILE_ENTRY_OFFSET, sizeof(file_entry), &retlen,