Skip to content

Commit

Permalink
drivers: sdhc: esp32: remove unused code
Browse files Browse the repository at this point in the history
Removed unused entry in SDHC driver and initialize
variables accordingly.

Signed-off-by: Sylvio Alves <[email protected]>
  • Loading branch information
sylvioalves committed Sep 12, 2024
1 parent cc54480 commit b46f24a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions drivers/sdhc/sdhc_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,10 +1081,9 @@ static int sdhc_esp32_request(const struct device *dev, struct sdhc_command *cmd
struct sdhc_data *data)
{
const struct sdhc_esp32_config *cfg = dev->config;
const sdmmc_dev_t *sdio_hw = cfg->sdio_hw;
int retries = (int)(cmd->retries + 1); /* first try plus retries */
uint32_t timeout_cfg;
int ret_esp;
uint32_t timeout_cfg = 0;
int ret_esp = 0;
int ret = 0;

/* convert command structures Zephyr vs ESP */
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ manifest:
groups:
- hal
- name: hal_espressif
revision: a79e607333bbd115a16e801ba49840a80c852253
revision: 6a5dae6bcd9c1c71f5d803943513b8f4c670fdb4
path: modules/hal/espressif
west-commands: west/west-commands.yml
groups:
Expand Down

0 comments on commit b46f24a

Please sign in to comment.