diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-03-01 13:38:04 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-05 23:37:44 +0000 |
commit | 51124a30308e6db8658575e5d9ec1ea3cb3ba3c3 (patch) | |
tree | c34c2d5a95f35eb7b0311faa2f09faac7b70f38d /sound/soc/atmel | |
parent | 129742576dd1b972ea1e671595a085e29012f7f3 (diff) |
ASoC: mchp-pdmc: return directly ret
Return directly ret instead of having different branches for error and
OK paths.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230301113807.24036-6-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r-- | sound/soc/atmel/mchp-pdmc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c index 6ec5324fd65e..853a7adfd654 100644 --- a/sound/soc/atmel/mchp-pdmc.c +++ b/sound/soc/atmel/mchp-pdmc.c @@ -759,12 +759,10 @@ static int mchp_pdmc_pcm_new(struct snd_soc_pcm_runtime *rtd, int ret; ret = mchp_pdmc_add_chmap_ctls(rtd->pcm, dd); - if (ret < 0) { + if (ret < 0) dev_err(dd->dev, "failed to add channel map controls: %d\n", ret); - return ret; - } - return 0; + return ret; } static struct snd_soc_dai_driver mchp_pdmc_dai = { |