aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorKuninori Morimoto <[email protected]>2019-08-07 10:31:36 +0900
committerMark Brown <[email protected]>2019-08-08 20:56:58 +0100
commit596becd3f82a7b7e091b0f5c380bc9a0e6758126 (patch)
treeb4558a115b54b1fde4bbecbb3be721f7906699a3 /tools/perf/scripts/python/bin
parentee5b3f11416d1ba69e919b2fe86aae0b46f9a83e (diff)
ASoC: soc-core: dai_link check under soc_dpcm_debugfs_add()
soc_dpcm_debugfs_add(rtd) is checking rtd->dai_link pointer, but, rtd->dai_link->dynamic have been already checked before calling it. static int soc_probe_link_dais(...) { dai_link = rtd->dai_link; ... => if (dai_link->dynamic) => soc_dpcm_debugfs_add(rtd); ... } void soc_dpcm_debugfs_add(rtd) { => if (!rtd->dai_link) return; ... } These pointer checks are strange/pointless. This patch checks dai_link->dynamic under soc_dpcm_debugfs_add(). Signed-off-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions