projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e558a8
)
ASoC: qdsp6: q6asm-dai: clean up a return
author
Dan Carpenter
<
[email protected]
>
Mon, 10 Sep 2018 08:40:48 +0000
(11:40 +0300)
committer
Mark Brown
<
[email protected]
>
Mon, 10 Sep 2018 10:46:39 +0000
(11:46 +0100)
Smatch complains that if both "psubstream" and "csubstream" are NULL
then "ret" is uninitialized. That probably can't happen, but it's
cleaner to just return zero anyway so let's do that.
Signed-off-by: Dan Carpenter <
[email protected]
>
Acked-by: Srinivas Kandagatla <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/qcom/qdsp6/q6asm-dai.c
patch
|
blob
|
history
diff --git
a/sound/soc/qcom/qdsp6/q6asm-dai.c
b/sound/soc/qcom/qdsp6/q6asm-dai.c
index 9db9a2944ef26d23bb1bd95b33a1af6ac2a1517c..c75fab38905d2d4b22d1e41563b50cda30c51e4b 100644
(file)
--- a/
sound/soc/qcom/qdsp6/q6asm-dai.c
+++ b/
sound/soc/qcom/qdsp6/q6asm-dai.c
@@
-493,7
+493,7
@@
static int q6asm_dai_pcm_new(struct snd_soc_pcm_runtime *rtd)
}
}
- return
ret
;
+ return
0
;
}
static void q6asm_dai_pcm_free(struct snd_pcm *pcm)