summaryrefslogtreecommitdiffstats
path: root/sound/soc/generic/simple-card.c
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2013-12-23 13:24:59 +0800
committerMark Brown <broonie@linaro.org>2013-12-31 12:48:28 +0000
commite874ddead38996ec40c6a6be2347a69fac520126 (patch)
tree12c845a5b8effb5b93dd691ed15f7f156def5ceb /sound/soc/generic/simple-card.c
parentd4c22094b256a7327346738721b89a78d4680b08 (diff)
downloadblackbird-op-linux-e874ddead38996ec40c6a6be2347a69fac520126.tar.gz
blackbird-op-linux-e874ddead38996ec40c6a6be2347a69fac520126.zip
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/simple-card.c')
-rw-r--r--sound/soc/generic/simple-card.c2
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) {
OpenPOWER on IntegriCloud