From: Max Krummenacher Date: Tue, 1 Nov 2016 14:04:20 +0000 (+0100) Subject: spl: mmc: fix switch statement X-Git-Tag: v2017.01-rc1~156^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c8d7647f639813cff08a4a7de62db815829ec72b;p=u-boot spl: mmc: fix switch statement 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 Reviewed-by: Tom Rini Acked-by: Marek Vasut --- diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 0b681c23de..a3d6b36cb4 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -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");