[Components][SDIO]fix Assigned value is garbage or undefined

This commit is contained in:
ZYH 2018-09-22 14:49:47 +08:00
parent c042690e59
commit f260f7effd
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ rt_int32_t sdio_io_rw_direct(struct rt_mmcsd_card *card,
RT_ASSERT(card != RT_NULL); RT_ASSERT(card != RT_NULL);
RT_ASSERT(fn <= SDIO_MAX_FUNCTIONS); RT_ASSERT(fn <= SDIO_MAX_FUNCTIONS);
RT_ASSERT(pdata != RT_NULL);
if (reg_addr & ~SDIO_ARG_CMD53_REG_MASK) if (reg_addr & ~SDIO_ARG_CMD53_REG_MASK)
return -RT_ERROR; return -RT_ERROR;