diff options
author | Kuninori Morimoto <[email protected]> | 2020-02-27 10:54:48 +0900 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-03-05 13:15:18 +0000 |
commit | 6e02feb0d2663c1b7caa5e271c2a60e219f0ca07 (patch) | |
tree | e61d3c798483943611d947064aa84dde94f5ea80 /lib/memory-notifier-error-inject.c | |
parent | 25c2f5156dd57f03aee2de079248c23a56222c92 (diff) |
ASoC: soc-pcm: remove duplicate be check from dpcm_add_paths()
dpcm_add_paths() checks returned be from dpcm_get_be()
static int dpcm_add_paths(...)
{
...
for_each_dapm_widgets(list, i, widget) {
...
be = dpcm_get_be(...);
...
/* make sure BE is a real BE */
=> if (!be->dai_link->no_pcm)
continue;
...
}
...
}
But, dpcm_get_be() itself is checking it already.
dpcm_get_be(...)
{
...
for_each_card_rtds(card, be) {
=> if (!be->dai_link->no_pcm)
continue;
...
if (...)
=> return be;
}
return NULL
}
This patch removes duplicate check
Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions