未验证 提交 2aa600e0 编写于 作者: B Bernard Xiong 提交者: GitHub

[components] fix compiling warning (#6733)

上级 aa0c8b4a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册