summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2022-12-13 09:44:45 +0800
committerGitHub <[email protected]>2022-12-13 09:44:45 +0800
commit2aa600e01bec6c848d2791a3b00673dd2fb0bf5d (patch)
tree4fc72d4855ba2b56bbb5dabd63ba1feb89d1ebd9 /components/drivers
parentaa0c8b4a9307de32941d47009a72d3ca85528069 (diff)
[components] fix compiling warning (#6733)
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/sdio/mmc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/mmc.c
index 32a9a204d8..e1dc3cf957 100644
--- a/components/drivers/sdio/mmc.c
+++ b/components/drivers/sdio/mmc.c
@@ -514,7 +514,6 @@ static rt_int32_t mmcsd_mmc_init_card(struct rt_mmcsd_host *host,
rt_int32_t err;
rt_uint32_t resp[4];
rt_uint32_t rocr = 0;
- rt_uint32_t max_data_rate;
rt_uint8_t *ext_csd = RT_NULL;
struct rt_mmcsd_card *card = RT_NULL;
@@ -599,12 +598,6 @@ static rt_int32_t mmcsd_mmc_init_card(struct rt_mmcsd_host *host,
if (!(card->flags & CARD_FLAG_SDHC) && (rocr & (1 << 30)))
card->flags |= CARD_FLAG_SDHC;
- /* set bus speed */
- if (card->flags & (CARD_FLAG_HIGHSPEED | CARD_FLAG_HIGHSPEED_DDR))
- max_data_rate = card->hs_max_data_rate;
- else
- max_data_rate = card->max_data_rate;
-
/*switch bus width and bus mode*/
err = mmc_select_bus_width(card, ext_csd);
if (err)