diff --git a/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c b/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c index f025fb638..15bcab04b 100644 --- a/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c +++ b/uboot-mtk-20250711/board/mediatek/common/mtd_helper.c @@ -1541,10 +1541,8 @@ int mtd_upgrade_image(const void *data, size_t size) struct owrt_image_info ii; struct mtd_info *mtd; int ret; -#ifdef CONFIG_MEDIATEK_MULTI_MTD_LAYOUT const char *ubi_flash_part = PART_UBI_NAME; #endif -#endif #ifdef CONFIG_CMD_UBI struct mtd_info *mtd_kernel; @@ -1639,10 +1637,8 @@ int mtd_boot_image(bool do_boot) { #if defined(CONFIG_CMD_UBI) || !defined(CONFIG_MTK_DUAL_BOOT) struct mtd_info *mtd; -#ifdef CONFIG_MEDIATEK_MULTI_MTD_LAYOUT const char *ubi_boot_part = PART_UBI_NAME; #endif -#endif #ifdef CONFIG_CMD_UBI struct mtd_info *mtd_kernel;