diff mbox

[U-Boot,v2,1/2] spl: mmc: fix switch statement

Message ID 1478009061-20094-1-git-send-email-max.krummenacher@toradex.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Max Krummenacher Nov. 1, 2016, 2:04 p.m. UTC
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>


---

Changes in v2:
- dropped patch 'mx6: synchronize SPL to u-boot offset'. Dependent on the
  bootmedia that offset might change, so provide it from the board config.
- added Acked and Reviewed by to 'spl: mmc: fix switch statement'

 common/spl/spl_mmc.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index c674e61..367b4e4 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");