From f746c6e55607e9334cd82adc4b5148f0f3e07b89 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sat, 23 Dec 2017 23:56:46 +0800 Subject: [PATCH] [DeviceDrivers] fix compiling warning --- components/drivers/sdio/block_dev.c | 4 +--- 1 file changed, 1 insertion(+), 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;