Skip to content

Commit 0aec059

Browse files
sylvioalvescarlescufi
authored andcommitted
drivers: sdhc: esp32: remove unused code
Removed unused entry in SDHC driver and initialize variables accordingly. Signed-off-by: Sylvio Alves <[email protected]>
1 parent e06c7fc commit 0aec059

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/sdhc/sdhc_esp32.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,9 @@ static int sdhc_esp32_request(const struct device *dev, struct sdhc_command *cmd
10811081
struct sdhc_data *data)
10821082
{
10831083
const struct sdhc_esp32_config *cfg = dev->config;
1084-
const sdmmc_dev_t *sdio_hw = cfg->sdio_hw;
10851084
int retries = (int)(cmd->retries + 1); /* first try plus retries */
1086-
uint32_t timeout_cfg;
1087-
int ret_esp;
1085+
uint32_t timeout_cfg = 0;
1086+
int ret_esp = 0;
10881087
int ret = 0;
10891088

10901089
/* convert command structures Zephyr vs ESP */

0 commit comments

Comments
 (0)