]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mvebu: bubt: Drop dead code
authorTom Rini <trini@konsulko.com>
Fri, 24 Jul 2020 21:13:17 +0000 (17:13 -0400)
committerStefan Roese <sr@denx.de>
Thu, 6 Aug 2020 12:12:14 +0000 (14:12 +0200)
The code around CONFIG_SYS_MMC_ENV_PART has been untested since merge.
This can be seen by it referencing 'mmc->part_num' which was migrated
elsewhere prior to this code being merged.

Cc: Joel Johnson <mrjoel@lixil.net>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Stefan Roese <sr@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
cmd/mvebu/bubt.c

index b3b58442674614d491419e6e9d5146605c16e366..0d52be8dbf7d94b982abbb78c0ee5a3bb4c1993b 100644 (file)
@@ -176,16 +176,6 @@ static int mmc_burn_image(size_t image_size)
                return err;
        }
 
-#ifdef CONFIG_SYS_MMC_ENV_PART
-       if (mmc->part_num != CONFIG_SYS_MMC_ENV_PART) {
-               err = mmc_switch_part(mmc_dev_num, CONFIG_SYS_MMC_ENV_PART);
-               if (err) {
-                       printf("MMC partition switch failed\n");
-                       return err;
-               }
-       }
-#endif
-
        /* SD reserves LBA-0 for MBR and boots from LBA-1,
         * MMC/eMMC boots from LBA-0
         */
@@ -217,11 +207,6 @@ static int mmc_burn_image(size_t image_size)
        }
        printf("Done!\n");
 
-#ifdef CONFIG_SYS_MMC_ENV_PART
-       if (mmc->part_num != CONFIG_SYS_MMC_ENV_PART)
-               mmc_switch_part(mmc_dev_num, mmc->part_num);
-#endif
-
        return 0;
 }