[HAL][SDMMC] Remove Redundant Condition from HAL_SD_InitCard() API
diff --git a/Src/stm32l1xx_hal_sd.c b/Src/stm32l1xx_hal_sd.c
index a3736ff..bbd960c 100644
--- a/Src/stm32l1xx_hal_sd.c
+++ b/Src/stm32l1xx_hal_sd.c
@@ -403,7 +403,6 @@
HAL_StatusTypeDef HAL_SD_InitCard(SD_HandleTypeDef *hsd)
{
uint32_t errorstate;
- HAL_StatusTypeDef status;
SD_InitTypeDef Init;
/* Default SDIO peripheral configuration for SD card initialization */
@@ -415,11 +414,7 @@
Init.ClockDiv = SDIO_INIT_CLK_DIV;
/* Initialize SDIO peripheral interface with default configuration */
- status = SDIO_Init(hsd->Instance, Init);
- if(status != HAL_OK)
- {
- return HAL_ERROR;
- }
+ SDIO_Init(hsd->Instance, Init);
/* Disable SDIO Clock */
__HAL_SD_DISABLE(hsd);