diff options
| author | MurphyZhao <[email protected]> | 2018-11-24 17:31:36 +0800 |
|---|---|---|
| committer | MurphyZhao <[email protected]> | 2018-11-28 18:56:39 +0800 |
| commit | 3cf808921db99905daef98839f12ef9804cd69ec (patch) | |
| tree | 3d33c6652905a7230d68945fec622a173b4f3687 /components | |
| parent | a87914b5358092d7650d3455a163c92dd4cbcf8a (diff) | |
[components/drivers/audio] [修复] 编译警告
Signed-off-by: MurphyZhao <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/audio/audio.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/components/drivers/audio/audio.c b/components/drivers/audio/audio.c index 14dddb38ea..cb0a9b0fae 100644 --- a/components/drivers/audio/audio.c +++ b/components/drivers/audio/audio.c @@ -105,8 +105,6 @@ static rt_err_t _audio_dev_init(struct rt_device *dev) static rt_err_t _audio_dev_open(struct rt_device *dev, rt_uint16_t oflag) { - rt_err_t result = RT_EOK; - rt_base_t level; struct rt_audio_device *audio; RT_ASSERT(dev != RT_NULL); @@ -159,7 +157,6 @@ static rt_err_t _audio_dev_open(struct rt_device *dev, rt_uint16_t oflag) //init pipe for record { - rt_size_t size = CFG_AUDIO_RECORD_PIPE_SIZE; rt_uint8_t *buf = rt_malloc(CFG_AUDIO_RECORD_PIPE_SIZE); if (buf == RT_NULL) @@ -536,8 +533,6 @@ void rt_audio_tx_complete(struct rt_audio_device *audio, rt_uint8_t *pbuf) void rt_audio_rx_done(struct rt_audio_device *audio, rt_uint8_t *pbuf, rt_size_t len) { - rt_err_t result = RT_EOK; - //save data to record pipe rt_device_write(RT_DEVICE(RT_DEVICE(&audio_pipe)), 0, pbuf, len); |
