diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2013-12-23 13:24:59 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-31 12:48:28 +0000 |
commit | e874ddead38996ec40c6a6be2347a69fac520126 (patch) | |
tree | 12c845a5b8effb5b93dd691ed15f7f156def5ceb | |
parent | d4c22094b256a7327346738721b89a78d4680b08 (diff) |
ASoC: simple-card: Cleanup __asoc_simple_card_dai_init() ret check
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>
-rw-r--r-- | sound/soc/generic/simple-card.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 6230efb05fd..3ba65bb6343 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -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) { |