Fix nsh_archinitialize return value

This commit is contained in:
Gregory Nutt
2014-09-20 13:36:29 -06:00
parent 0e9d155c76
commit 822208a3be
+7 -5
View File
@@ -64,11 +64,13 @@
int nsh_archinitialize(void)
{
#ifndef CONFIG_BOARD_INITIALIZE
/* Perform board-specific initialization */
(void)stm32_bringup();
#endif
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
return OK;
#else
/* Perform board-specific initialization */
return stm32_bringup();
#endif
}