projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1297425
)
ASoC: mchp-pdmc: return directly ret
author
Claudiu Beznea
<claudiu.beznea@microchip.com>
Wed, 1 Mar 2023 11:38:04 +0000
(13:38 +0200)
committer
Mark Brown
<broonie@kernel.org>
Sun, 5 Mar 2023 23:37:44 +0000
(23:37 +0000)
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>
sound/soc/atmel/mchp-pdmc.c
patch
|
blob
|
history
diff --git
a/sound/soc/atmel/mchp-pdmc.c
b/sound/soc/atmel/mchp-pdmc.c
index 6ec5324fd65ecb3b80b18e8f1ba14f480d334266..853a7adfd654c84d71b017095a44d3faab082c18 100644
(file)
--- 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 = {