Commit 2525808e authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

ASoC: rt5631: Fix return value

Return the value obtained from get_coeff() instead of EINVAL.
Silences a smatch warning.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f4a75d2e
......@@ -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)) {
......
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