فهرست منبع

ASoC: rt5631: Fix return value

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>
Sachin Kamat 12 سال پیش
والد
کامیت
2525808ee8
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      sound/soc/codecs/rt5631.c

+ 1 - 1
sound/soc/codecs/rt5631.c

@@ -1382,7 +1382,7 @@ static int rt5631_hifi_pcm_params(struct snd_pcm_substream *substream,
 					timesofbclk);
 					timesofbclk);
 	if (coeff < 0) {
 	if (coeff < 0) {
 		dev_err(codec->dev, "Fail to get coeff\n");
 		dev_err(codec->dev, "Fail to get coeff\n");
-		return -EINVAL;
+		return coeff;
 	}
 	}
 
 
 	switch (params_format(params)) {
 	switch (params_format(params)) {