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:
5b99a0a
)
ASoC: soc-core: don't use for_each_card_links_safe() at snd_soc_find_dai_link()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Wed, 7 Aug 2019 01:30:41 +0000
(10:30 +0900)
committer
Mark Brown
<broonie@kernel.org>
Wed, 7 Aug 2019 13:25:50 +0000
(14:25 +0100)
It doesn't removes list during loop at snd_soc_find_dai_link().
We don't need to use _safe loop.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://lore.kernel.org/r/87imr9ahp9.wl-kuninori.morimoto.gx@renesas.com
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index 7345679d49031891384018488e44152b47bcb2f6..e176b972e4e62e1cd9c9dfe8e1fdbcf73d8ccf0c 100644
(file)
--- a/
sound/soc/soc-core.c
+++ b/
sound/soc/soc-core.c
@@
-817,11
+817,11
@@
struct snd_soc_dai_link *snd_soc_find_dai_link(struct snd_soc_card *card,
int id, const char *name,
const char *stream_name)
{
- struct snd_soc_dai_link *link
, *_link
;
+ struct snd_soc_dai_link *link;
lockdep_assert_held(&client_mutex);
- for_each_card_links
_safe(card, link, _
link) {
+ for_each_card_links
(card,
link) {
if (link->id != id)
continue;