Skip to content

Commit

Permalink
ASoC: rt5631: Fix return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Mark Brown committed Nov 19, 2012
1 parent f4a75d2 commit 2525808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/rt5631.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2525808

Please sign in to comment.