[components][drivers]sdio 给局部指针变量赋初值,修复潜在问题
This commit is contained in:
parent
6ecdfca2cd
commit
f850a2dd33
|
@ -412,12 +412,12 @@ static rt_err_t mmc_set_card_addr(struct rt_mmcsd_host *host, rt_uint32_t rca)
|
||||||
static rt_int32_t mmcsd_mmc_init_card(struct rt_mmcsd_host *host,
|
static rt_int32_t mmcsd_mmc_init_card(struct rt_mmcsd_host *host,
|
||||||
rt_uint32_t ocr)
|
rt_uint32_t ocr)
|
||||||
{
|
{
|
||||||
struct rt_mmcsd_card *card;
|
|
||||||
rt_int32_t err;
|
rt_int32_t err;
|
||||||
rt_uint32_t resp[4];
|
rt_uint32_t resp[4];
|
||||||
rt_uint32_t rocr;
|
rt_uint32_t rocr;
|
||||||
rt_uint32_t max_data_rate;
|
rt_uint32_t max_data_rate;
|
||||||
rt_uint8_t *ext_csd = RT_NULL;
|
rt_uint8_t *ext_csd = RT_NULL;
|
||||||
|
struct rt_mmcsd_card *card = RT_NULL;
|
||||||
|
|
||||||
mmcsd_go_idle(host);
|
mmcsd_go_idle(host);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue