mirror of https://github.com/thesofproject/sof.git
audio: host: remove superfluous variables
Two variables in host_new() contain constant values and only obscure the code. Remove them. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
7d7fa49ea0
commit
fef188562a
|
@ -371,8 +371,6 @@ static struct comp_dev *host_new(struct sof_ipc_comp *comp)
|
|||
struct sof_ipc_comp_host *host;
|
||||
struct comp_dev *dev;
|
||||
struct host_data *hd;
|
||||
uint32_t dma_dev = DMA_DEV_HOST;
|
||||
uint32_t caps = 0;
|
||||
uint32_t dir;
|
||||
|
||||
trace_host("host_new()");
|
||||
|
@ -403,7 +401,7 @@ static struct comp_dev *host_new(struct sof_ipc_comp *comp)
|
|||
dir = ipc_host->direction == SOF_IPC_STREAM_PLAYBACK ?
|
||||
DMA_DIR_HMEM_TO_LMEM : DMA_DIR_LMEM_TO_HMEM;
|
||||
|
||||
hd->dma = dma_get(dir, caps, dma_dev, DMA_ACCESS_SHARED);
|
||||
hd->dma = dma_get(dir, 0, DMA_DEV_HOST, DMA_ACCESS_SHARED);
|
||||
if (!hd->dma) {
|
||||
trace_host_error("host_new() error: dma_get() returned NULL");
|
||||
rfree(hd);
|
||||
|
|
Loading…
Reference in New Issue