[Components][SDIO]block 'err' declared without an initial value

This commit is contained in:
ZYH 2018-09-22 14:53:08 +08:00
parent f260f7effd
commit f6be7abb2d
1 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ static rt_size_t rt_mmcsd_read(rt_device_t dev,
void *buffer,
rt_size_t size)
{
rt_err_t err;
rt_err_t err = 0;
rt_size_t offset = 0;
rt_size_t req_size = 0;
rt_size_t remain_size = size;
@ -293,7 +293,7 @@ static rt_size_t rt_mmcsd_write(rt_device_t dev,
const void *buffer,
rt_size_t size)
{
rt_err_t err;
rt_err_t err = 0;
rt_size_t offset = 0;
rt_size_t req_size = 0;
rt_size_t remain_size = size;