]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: mmc: fix switch statement
authorMax Krummenacher <max.oss.09@gmail.com>
Tue, 1 Nov 2016 14:04:20 +0000 (15:04 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:33:03 +0000 (16:33 +0100)
If CONFIG_SPL_LIBCOMMON_SUPPORT is not defined there is a lone case statement
at the end of the switch leading to a compile error.
Remove the offending case statement.

| common/spl/spl_mmc.c:339:7: error: label at end of compound statement

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Marek Vasut <marex@denx.de>
common/spl/spl_mmc.c

index 0b681c23de94247e5ef92975fffa7e7a465f4236..a3d6b36cb41ace1d1519750c5eca5f49416d7d11 100644 (file)
@@ -342,7 +342,6 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image,
                        return err;
 
                break;
-       case MMCSD_MODE_UNDEFINED:
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
        default:
                puts("spl: mmc: wrong boot mode\n");