diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2013-12-23 09:24:59 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-31 16:48:28 +0400 |
commit | e874ddead38996ec40c6a6be2347a69fac520126 (patch) | |
tree | 12c845a5b8effb5b93dd691ed15f7f156def5ceb /sound/soc/generic | |
parent | d4c22094b256a7327346738721b89a78d4680b08 (diff) | |
download | linux-e874ddead38996ec40c6a6be2347a69fac520126.tar.xz |
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>
Diffstat (limited to 'sound/soc/generic')
-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 6230efb05fd7..3ba65bb63439 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) { |