kernel: mtdsplit_h3c_vfs: Fix build
authorHauke Mehrtens <[email protected]>
Fri, 21 Nov 2025 20:33:26 +0000 (21:33 +0100)
committerHauke Mehrtens <[email protected]>
Fri, 21 Nov 2025 20:35:32 +0000 (21:35 +0100)
Fix a recently introduces compile problem.

Fixes: 2acf18bf4deb ("kernel: mtdsplit_h3c_vfs: use -ENOENT instead of -ENODEV")
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_h3c_vfs.c

index a766ff7c2fb7297ac8a5f62d7d75bb6598417346..a7b2b6ea7e424d2fb8da165be860da514c83e636 100644 (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,