projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a75d2
)
ASoC: rt5631: Fix return value
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 19 Nov 2012 05:48:14 +0000
(11:18 +0530)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 19 Nov 2012 06:21:20 +0000
(15:21 +0900)
Return the value obtained from get_coeff() instead of EINVAL.
Silences a smatch warning.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/rt5631.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5631.c
b/sound/soc/codecs/rt5631.c
index 960d0e93cce9463a3592c17d74de0f9d5ad4bf19..d6ca615489eecfb5eddf8c96342da7ab9f2b49d1 100644
(file)
--- a/
sound/soc/codecs/rt5631.c
+++ b/
sound/soc/codecs/rt5631.c
@@
-1382,7
+1382,7
@@
static int rt5631_hifi_pcm_params(struct snd_pcm_substream *substream,
timesofbclk);
if (coeff < 0) {
dev_err(codec->dev, "Fail to get coeff\n");
- return
-EINVAL
;
+ return
coeff
;
}
switch (params_format(params)) {