mirror of
https://github.com/VIKINGYFY/immortalwrt.git
synced 2025-12-17 09:35:14 +00: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
@ -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…
Reference in New Issue
Block a user