dai-zephyr: remove not used pointer and its assignment

buffer_ptr is no longer valid in dai-zephyr.c, remove it.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
This commit is contained in:
Baofeng Tian 2023-04-19 15:32:46 +08:00 committed by Kai Vehmanen
parent 0696f7eddc
commit b77dbc3c88
1 changed files with 2 additions and 8 deletions

View File

@ -224,7 +224,6 @@ static enum dma_cb_status dai_dma_cb(struct comp_dev *dev, uint32_t bytes)
struct dai_data *dd = comp_get_drvdata(dev);
struct comp_buffer __sparse_cache *local_buf, *dma_buf;
enum dma_cb_status dma_status = DMA_CB_STATUS_RELOAD;
void *buffer_ptr;
int ret;
comp_dbg(dev, "dai_dma_cb()");
@ -253,18 +252,13 @@ static enum dma_cb_status dai_dma_cb(struct comp_dev *dev, uint32_t bytes)
local_buf = buffer_acquire(dd->local_buffer);
if (dev->direction == SOF_IPC_STREAM_PLAYBACK) {
if (dev->direction == SOF_IPC_STREAM_PLAYBACK)
ret = dma_buffer_copy_to(local_buf, dma_buf,
dd->process, bytes);
buffer_ptr = local_buf->stream.r_ptr;
} else {
else
ret = dma_buffer_copy_from(dma_buf, local_buf,
dd->process, bytes);
buffer_ptr = local_buf->stream.w_ptr;
}
/* assert dma_buffer_copy succeed */
if (ret < 0) {
struct comp_buffer __sparse_cache *source_c, *sink_c;