ASoC: rt5631: Fix return value
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 19 Nov 2012 05:48:14 +0000 (11:18 +0530)
committerMark 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

index 960d0e93cce9463a3592c17d74de0f9d5ad4bf19..d6ca615489eecfb5eddf8c96342da7ab9f2b49d1 100644 (file)
@@ -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)) {
This page took 0.025447 seconds and 5 git commands to generate.