Commit ef1258a7 authored by Minghao Chi's avatar Minghao Chi Committed by Mark Brown

ASoC: uniphier: simplify the return expression of uniphier_aio_compr_set_params()

Simplify the return expression.
Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Link: https://lore.kernel.org/r/20220505021733.54275-1-chi.minghao@zte.com.cnSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent cae640c5
...@@ -139,7 +139,6 @@ static int uniphier_aio_compr_set_params(struct snd_soc_component *component, ...@@ -139,7 +139,6 @@ static int uniphier_aio_compr_set_params(struct snd_soc_component *component,
struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0));
struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; struct uniphier_aio_sub *sub = &aio->sub[cstream->direction];
struct device *dev = &aio->chip->pdev->dev; struct device *dev = &aio->chip->pdev->dev;
int ret;
if (params->codec.id != SND_AUDIOCODEC_IEC61937) { if (params->codec.id != SND_AUDIOCODEC_IEC61937) {
dev_err(dev, "Codec ID is not supported(%d)\n", dev_err(dev, "Codec ID is not supported(%d)\n",
...@@ -161,11 +160,7 @@ static int uniphier_aio_compr_set_params(struct snd_soc_component *component, ...@@ -161,11 +160,7 @@ static int uniphier_aio_compr_set_params(struct snd_soc_component *component,
aio_port_reset(sub); aio_port_reset(sub);
aio_src_reset(sub); aio_src_reset(sub);
ret = uniphier_aio_compr_prepare(component, cstream); return uniphier_aio_compr_prepare(component, cstream);
if (ret)
return ret;
return 0;
} }
static int uniphier_aio_compr_hw_free(struct snd_soc_component *component, static int uniphier_aio_compr_hw_free(struct snd_soc_component *component,
......
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