summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2017-12-23 23:56:46 +0800
committerBernard Xiong <[email protected]>2017-12-24 00:06:29 +0800
commitf746c6e55607e9334cd82adc4b5148f0f3e07b89 (patch)
tree3266219d58d4ea804d364e70818978418a468228 /components
parenta5664695d3671ca0e954238a0a56dcccfb636a7e (diff)
[DeviceDrivers] fix compiling warning
Diffstat (limited to 'components')
-rw-r--r--components/drivers/sdio/block_dev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c
index c42c485eaf..4143272b80 100644
--- a/components/drivers/sdio/block_dev.c
+++ b/components/drivers/sdio/block_dev.c
@@ -42,7 +42,7 @@ struct mmcsd_blk_device
#define RT_MMCSD_MAX_PARTITION 16
#endif
-static rt_int32_t mmcsd_num_wr_blocks(struct rt_mmcsd_card *card)
+rt_int32_t mmcsd_num_wr_blocks(struct rt_mmcsd_card *card)
{
rt_int32_t err;
rt_uint32_t blocks;
@@ -109,8 +109,6 @@ static rt_err_t rt_mmcsd_req_blk(struct rt_mmcsd_card *card,
rt_size_t blks,
rt_uint8_t dir)
{
- void *aligned_buf;
-
struct rt_mmcsd_cmd cmd, stop;
struct rt_mmcsd_data data;
struct rt_mmcsd_req req;