Commit 789b930a authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

ASoC: wm_adsp: Make use of local variables

Tidy up some instances of dereferencing to obtain things that are
already stored in local variables.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 26ffa016
...@@ -3381,7 +3381,7 @@ static int wm_adsp_compr_attach(struct wm_adsp_compr *compr) ...@@ -3381,7 +3381,7 @@ static int wm_adsp_compr_attach(struct wm_adsp_compr *compr)
return -EINVAL; return -EINVAL;
compr->buf = buf; compr->buf = buf;
compr->buf->compr = compr; buf->compr = compr;
return 0; return 0;
} }
...@@ -4091,7 +4091,7 @@ int wm_adsp_compr_pointer(struct snd_compr_stream *stream, ...@@ -4091,7 +4091,7 @@ int wm_adsp_compr_pointer(struct snd_compr_stream *stream,
buf = compr->buf; buf = compr->buf;
if (!compr->buf || compr->buf->error) { if (!buf || buf->error) {
snd_compr_stop_error(stream, SNDRV_PCM_STATE_XRUN); snd_compr_stop_error(stream, SNDRV_PCM_STATE_XRUN);
ret = -EIO; ret = -EIO;
goto out; goto out;
...@@ -4111,7 +4111,7 @@ int wm_adsp_compr_pointer(struct snd_compr_stream *stream, ...@@ -4111,7 +4111,7 @@ int wm_adsp_compr_pointer(struct snd_compr_stream *stream,
if (buf->avail < wm_adsp_compr_frag_words(compr)) { if (buf->avail < wm_adsp_compr_frag_words(compr)) {
ret = wm_adsp_buffer_get_error(buf); ret = wm_adsp_buffer_get_error(buf);
if (ret < 0) { if (ret < 0) {
if (compr->buf->error) if (buf->error)
snd_compr_stop_error(stream, snd_compr_stop_error(stream,
SNDRV_PCM_STATE_XRUN); SNDRV_PCM_STATE_XRUN);
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment