ASoC: simple-card: Cleanup __asoc_simple_card_dai_init() ret check
authorXiubo Li <Li.Xiubo@freescale.com>
Mon, 23 Dec 2013 05:24:59 +0000 (13:24 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 31 Dec 2013 12:48:28 +0000 (12:48 +0000)
The ret parameter is always equal to zero till here.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/generic/simple-card.c

index 6230efb05fd7482c0442b815db9640ab361e24d6..3ba65bb634399498cc0fcbdf72f2fc0f3933f880 100644 (file)
@@ -25,7 +25,7 @@ static int __asoc_simple_card_dai_init(struct snd_soc_dai *dai,
 
        daifmt |= set->fmt;
 
-       if (!ret && daifmt)
+       if (daifmt)
                ret = snd_soc_dai_set_fmt(dai, daifmt);
 
        if (ret == -ENOTSUPP) {