struct snd_soc_pcm_runtime *rtd = substream->private_data;
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct cygnus_aio_port *aio;
-       int ret = 0;
 
        aio = cygnus_dai_get_dma_data(substream);
        dev_dbg(rtd->cpu_dai->dev, "%s  port %d\n", __func__, aio->portnum);
        snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
        runtime->dma_bytes = params_buffer_bytes(params);
 
-       return ret;
+       return 0;
 }
 
 static int cygnus_pcm_hw_free(struct snd_pcm_substream *substream)
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct cygnus_aio_port *aio;
        unsigned long bufsize, periodsize;
-       int ret = 0;
        bool is_play;
        u32 start;
        struct ringbuf_regs *p_rbuf = NULL;
        ringbuf_set_initial(aio->cygaud->audio, p_rbuf, is_play, start,
                                periodsize, bufsize);
 
-       return ret;
+       return 0;
 }
 
 static snd_pcm_uframes_t cygnus_pcm_pointer(struct snd_pcm_substream *substream)