[HAL][SDMMC] Remove redundant Condition from HAL_SD_InitCard()
diff --git a/Src/stm32f7xx_hal_sd.c b/Src/stm32f7xx_hal_sd.c index 31cbddf..29e4cea 100644 --- a/Src/stm32f7xx_hal_sd.c +++ b/Src/stm32f7xx_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 SDMMC peripheral configuration for SD card initialization */ @@ -415,11 +414,7 @@ Init.ClockDiv = SDMMC_INIT_CLK_DIV; /* Initialize SDMMC peripheral interface with default configuration */ - status = SDMMC_Init(hsd->Instance, Init); - if(status != HAL_OK) - { - return HAL_ERROR; - } + SDMMC_Init(hsd->Instance, Init); /* Disable SDMMC Clock */ __HAL_SD_DISABLE(hsd);