Merge tag 'sound-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[sfrench/cifs-2.6.git] / sound / soc / fsl / fsl_dma.c
index e0c39c5f4854226c6a8d0a54cc4b2e5bc054077a..84bd8a5356eb9d87df9ed50552c8fd33d3b62fee 100644 (file)
@@ -392,7 +392,6 @@ static int fsl_dma_open(struct snd_soc_component *component,
        dma_addr_t ld_buf_phys;
        u64 temp_link;          /* Pointer to next link descriptor */
        u32 mr;
-       unsigned int channel;
        int ret = 0;
        unsigned int i;
 
@@ -408,8 +407,6 @@ static int fsl_dma_open(struct snd_soc_component *component,
                return ret;
        }
 
-       channel = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1;
-
        if (dma->assigned) {
                dev_err(dev, "dma channel already assigned\n");
                return -EBUSY;