mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
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:
parent
7f5c7b8626
commit
4f8f0bfeef
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue