projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4c2209
)
ASoC: simple-card: Cleanup __asoc_simple_card_dai_init() ret check
author
Xiubo Li
<Li.Xiubo@freescale.com>
Mon, 23 Dec 2013 05:24:59 +0000
(13:24 +0800)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/generic/simple-card.c
b/sound/soc/generic/simple-card.c
index 6230efb05fd7482c0442b815db9640ab361e24d6..3ba65bb634399498cc0fcbdf72f2fc0f3933f880 100644
(file)
--- 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) {